You need to sign in to do that
Don't have an account?
If Statement in a URL List Button to default Record Type based on the parent
I have built a URL button to create a new child record with some defaults, but I need an IF statement in the button to choose which record type. I tried this, but the If statement does not work. What is wrong with the If part of the statement?
/lightning/o/Project_Deliverable__c/new?{!IF(Proposal__c.RecordTypeId="0126t000000Ci5qAAC","recordTypeId=0126t000000Ci5CAAS","recordTypeId=0126t000000Ci57AAC")}&defaultFieldValues=,Proposal__c={!Proposal__c.Id},Name={!Proposal__c.Proposal_Number__c}%20-%20New%20Deliverable &backgroundContext=%2Flightning%2Fr%2FProposal__c%2F{!Proposal__c.Id}%2Fview
All Answers
Hi Scott,
Kindly refer this link for Conditional URL :-
https://help.salesforce.com/s/articleView?id=sf.customize_functions_i_z.htm&type=5
regards,
Priya Ranjan