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
mhson1978mhson1978 

Passing custom request parameters

Hello Force developers.

After wrestling with ability to create custom related link section under Leads, I've decided to try out different approach.

We have a need to not only merge duplicate leads coming into SF through web-to-lead functionality but also merge documents downloaded by that user.

 

I've decided to take care of automatic search for duplicate leads by using Triggers. Before insert, i'll search for existing leads and if it exists, it will mark the incoming leads status as "Closed - Duplicate".

Once duplicated, it'll find the document id downloaded by the user and insert new row into the LeadDownloads object with document title and leads email.

 

My solution to display these list of documents on Leads detail window is to create a custom link which will query LeadDownloads object by passing in email address from Leads. I have not been successful in finding or understanding way to capture custom request parameters coming from the leads detail page on VisualForce page i am making.

 

Any assistance with this would be greatly appriciated.

 

thank you.