Salesforce javascript get lookup field id

var opptyId = “{!Commercial_Contract__c.OpportunityId__c}”;

var oppty_Name = “{!Commercial_Contract__c.Opportunity__c}”;

Field definition:

Opportunity
Opportunity__c Lookup(Opportunity)

 

var userId=”{!Commercial_Contract__c.OwnerId__c}”;

var userName=”{!Commercial_Contract__c.Owner__c}”;

Field definition:

Contract Owner
Owner__c Lookup(User)

 

Print Friendly, PDF & Email
This entry was posted in Development and tagged , . Bookmark the permalink.