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
bromerobromero 

Passing Contact Roles in custom links

Hello,

I have a button in the Contact page (opportunity list), that when clicked creates a new opportunity with many fields pre-populated. I have been able to pass all sort of fields such as Account, stage, close date, amount and opportunity name.

 

However, I have not been able to pass contact data to link with the opportunity via Contact Roles.

I would like to have the original contact appear as primary contact, with a given role.

 

In my code (below) everything works, except what's in red.

 

 

https://emea.salesforce.com/006/e?retURL={!Contact.Id}&RecordType=0122000000001FL&cancelURL={!Contact.Id}&ent=Opportunity&opp9={!TODAY()}&00N20000001bae6=MACS%20-%20Direct%20Sales&opp3={!Account.Name}%20-%20Classroom%20Training&opp4_lkid={!Account.Id}&opp4={!Account.Name}&opp11=7.%20Closed%20Sales%20/%20Sold&opp7=1&contact0_lkid={!Contact.Id}&role0=12&contact0_lktp= 003&primary0=1

 

I certainly hope you can help...

 

Thanks!