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
Turner NelsonTurner Nelson 

Getting contact from Custom Object

I'm trying to get a contact from a custom object, but am struggling on how to do so. The custom object is called 'Opportunity Request' (API Name: 'Sales_Request__c'), which is a child object to an 'Opportunity', so one Opportunity can have many Opportunity Requests. On the Opportunity Request there is a field named 'Prospect Contact', which is not pulled from the Opportunity, but is selected when creating the Opportunity Request. How would I get this field since it is on a custom object and I'm unfamiliar of the IDs needed?
devedeve
Hi Tumer,

Is 'Prospect Contact' is lookup field in Opportunity Request. Where you need its value while creating new record of   Opportunity Request.