Hot answers tagged

3 votes

Promote an existing object to be part of a package

Not for a First Generation Unmanaged Package. They cannot be "partial" packages, will automatically fail installation if any component matches the target org's components, and can never be ...
sfdcfox's user avatar
  • 477k
2 votes

How to remove list-help header from transactional emails

I noticed this as well. tl;dr: It cannot be removed. This was introduced in this release: https://help.salesforce.com/s/articleView?id=sf.mc_rn_january_2021_es_one_click_unsub1.htm&type=5 ...where ...
Jonas Lamberty's user avatar
2 votes

Promote an existing object to be part of a package

You can use the unlocked packages to achieve what you need. You will move the object to an unlocked package. Once you create an unlocked package, install the package in the org. This installation does ...
Mohith Shrivastava's user avatar
2 votes
Accepted

Lightning Web Component Address Input code

You can simply install the lightning-base-components package, and there you'll find the source for every supported component, including the input address component.
sfdcfox's user avatar
  • 477k
1 vote
Accepted

Pre select values in multi select combobox

First of all thanks for mentioning and using my repo. The solution for preselecting picklist values is very simple and you can achieve it as follows: Step 1 The combobox LWC is embedded in the HTML ...
Sebastiano Schwarz's user avatar
1 vote

Pre select values in multi select combobox

You haven't given me a lot of information to go on here, but here are some tips: Call your setSelection method in the renderedCallback method. This is because it's likely needing to interact with ...
Caspar Harmer's user avatar
1 vote

Custom Setting generates duplicate records

If you can, change the Account.RegistrationNumber__c field type to Autonumber and forget about it, let the platform handle it for you. Delete the custom setting field storing the incrementing number ...
Francesco Pitzalis's user avatar
1 vote

Custom Setting generates duplicate records

Modify your existing Apex class to include a locking mechanism using the FOR UPDATE keyword when querying the custom setting record. public static void generateRegistrationNumbers(List<Account> ...
Belek Omurzakov's user avatar
1 vote

How can I move data from one field to another, then make the original field blank?

Assignments are not moves, they are copies. All you need to do is to assign the $Global.NullValue variable to the field you wish to clear out.
sfdcfox's user avatar
  • 477k
1 vote

How to create a custom field formula to show task owner first name on the task object?

The API name of the Assigned To is Owner. So can you try the below formula. Owner:User.FirstName
SaiPraveen Kakkirala's user avatar
1 vote

duplicate creation on same unit shouldn't be allowed using flow

If you can follow these steps i hope this will work for you. Create flow on Unit creation (Record Triggered Flow). Check it contains ContractId or not. (From Decision Element). If its contains then ...
Karan Sharma's user avatar
  • 1,167
1 vote

Layout - How to rename related lists?

If you need to change the related list name of a standard object on the layout - you can with Salesforce new Dynamic feature from 2021/2022. Navigate to the Lightning Page Record by clicking Edit Page ...
Karthik De's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible