function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
WPCMSWPCMS 

Custom Activity Button: How to Return to record where activity was created

 

&tsk2_lkid={!Lead_Contact__c.LeadId__c}
&tsk2={!Lead_Contact__c.Lead__c}
&name="Lead"
&00NM0000000Fjsy={!Lead_Contact__c.Name}
&00NM0000000Fjt3={!Lead_Contact__c.Contact_Alert__c}

 

 

How do I get this activity to return to the record where it was created? Everytime the user saves the activity it goes to thier home page.

 

Thanks,

Best Answer chosen by Admin (Salesforce Developers) 
BA_AdminBA_Admin

retURL=%2F{!Lead.Id}&saveURL=%2F{!Lead.Id}, try this