I have a custom field called Contact__c in my Opportunity object. It is a lookup to the Contact object. I created a custom button to send email so I could edit the URL to fill in the TO: field with Contact__c. The custom button has the following in it:
This is not working because it's putting the the name in the url instead of the Contact Id. Example:
If I edit the URL manually in my browser and change "Randy+Riegel" to the ID of that contact the field populates fine when refreshed. How can I get the ID in the URL instead of the Name?