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
PXForcePXForce 

Button on related list

I have a relted list of 'LeadKeyEvents' (Custom Object) on Leads . I want to have a button that would add another LeadKeyEvent (of a certain recordType based on some info on leads). I know i can add a new button but am not sure how to pass in the curr leadID to it. Any helo would be great

 

 

SurekaSureka

Hi,

 

You can try with the below code in the button -

 

 

https://na6.salesforce.com/a1K/e?CF00N80000004g7oH={!Lead.Name}&CF00N80000004g7oH_lkid={!Lead.Id}&retURL=%2F{!Lead.Id}

where "CF00N80000004g7oH" is the Id of the lookup feild from Lead to the Custom object.

 

Hope this helps.

 

Thanks

 

 

_Prasu__Prasu_

Standard new button on the related list should work for you.

Pradeep_NavatarPradeep_Navatar

Use {!$currentpage.parameters.id} to get curretlead id

 

Hope this helps.