1

I have ran into a unique issue here. I have Object A which contains a URL button that pre-populates a custom lookup field on Object B. However, I have a URL button on Object B that must pre-populate a custom lookup field on Object C.

The lookup field on Object C needs to be whatever the lookup field on Object B is.

How do I populate the custom lookup field on Object C with the required Name and ID of a record from the custom lookup field on Object B.

Example of the nonfunctional URL.

&CF00Na000000B7vs7_lkid={!ObjectB.Lookupfield__c.Id}&CF00Na000000B7vs7={!ObjectB.Lookupfield__c.Name}
4
  • 1
    When you click the button what is the resulting URL?
    – Jenny B
    Commented Dec 1, 2015 at 20:51
  • I cannot save the URL logic, gives me an error stating: Field ObjectB.Lookupfield__c.Id does not exist. :( Commented Dec 1, 2015 at 20:55
  • 1
    When you are creating the button and looking through the merge fields do you see LookupfieldId__c and a Lookupfield__c? If yes, try those, havent' tried it myself but thinking it might work.
    – Jenny B
    Commented Dec 1, 2015 at 21:00
  • 1
    Totally worked! I completely overlooked the insert merge field stuff, thanks again! Post it as an answer so I can mark it as one please. Commented Dec 1, 2015 at 21:07

2 Answers 2

3

When you are creating the button and looking through the merge fields do you see LookupfieldId__c and a Lookupfield__c? If yes, try those.

0
0

Just create formula field that will have lookup field reference. Now refer formula field like below -

YourLookupField__c={!URLENCODE(SObjectApiName.YourFormulaeField__c)}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .