You need to sign in to do that
Don't have an account?
SFDC palace
Help Needed - Custom Button - Return URL
Hi, wondered if anyone could help determine why my Return URL is not working on a custom button.
"/a0E/e?CF00N20000001ZdDo_lkid={!Opportunity.Id}&CF00N20000001ZdDo={!Opportunity.Name}&retURL=https://emea.salesforce.com/{!Opportunity.Id}"
The above related to a new custom object related to the opportunity, on saving I would like it to return back to the opportunity. I have tried lots of different options, even sending it to an external website to see what happens, but everytime it just takes me to the saved new record.
Is this not possible to do with custom objects, same code "retURL" works on custom event buttons.
Thanks for any assistance
retURL=%2F{Object.Id)&saveURL=%2F{Object.Id} These should both be the same object id's.
Let me know if this helps.
Jeremy
Niki
www.vankerksolution.com
/lightning/o/CustomObject__c/new?defaultFieldValues=
Name=test,
Case__c={!Case.Id},
&retURL={!Case.Link }
/lightning/o/CustomObject__c/new?defaultFieldValues=
Name=test,
Case__c={!Case.Id}
&retURL={!Case.Link }
/lightning/o/CustomObject__c/new?defaultFieldValues=Name=Test&navigationLocation=RELATED_LIST
I couldn't find possibe values for 'navigationLocation' other than 'RELATED_LIST' but it works even for detail page buttons. And 'backgroundContext' is appended automatically otherwise can be added explicitly as below
/lightning/o/CustomObject__c/new?defaultFieldValues=Name=Test&navigationLocation=RELATED_LIST&backgroundContext=%2Flightning%2Fr%2FAccount%2F{!Account.Id}%2Fview
I have a button calling a flow doing something similar. /flow/Create_Queue_Item?LMID={!License_Management__c.Id}&retURL=/{!License_Management__c.Id}
See the Forward Slash... eg URL=/{!License_Management__c.Id}
......................................................^............................................
Troy ~ Does that help?