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
BAI-JonBAI-Jon 

How to I get the ID instead of the name string from a reference field?

I have a custom object (Implementation) which contains a lookup field to Account.  In my sControl, i need to get the ID of that account but when i try in returns the name instead.  It seems like this should be easy to figure out, but i'm stumped.  Here is what i am currently using:

var accountReferenceID = "{!SFDC_Implementation__c.Account__c}";

Any ideas?
BAI-JonBAI-Jon
I figured it out.  I knew it was going to be something simple.  Just have to put "Id" after the account.  I tried putting the ID everywhere, like __c.Id and stuff but nothing was working. Cheers for a simple solution.

var accountReferenceID = "{!SFDC_Implementation__c.AccountId__c}";