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
natemanleynatemanley 

why does Custom Link pass differnt values?

I am not yet able to verify this in production but this is what I am experiencing in the test instance SF environment:

I have a custom link on the Opportunity that I was having it pass in the AccountId for the opportunity like this:

http://site/page.aspx?sfacctid={!Account_ID}
- From the Account Merge Fields

What I noticed is that if the opportunity has a Contact on it flagged as the primary and that contact is on a different account from the opportunity that my custom link passed in the AccountId for the contact and not the Account Id for the opportunity.

I changed my custom link to this:

http://site/page.aspx?sfacctid={!Opportunity_Account_ID}
- From the Opportunity Merge Fields

Now all is well and the Account Id passed is not sensitve the primary contact and all is well.

Can anybody explain why Salesforce works this way? Why {!Account_ID} from an Opportunity's point of view depends on the Contact flagged as the Primary?

Or is this a bug?