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
Jayaramu T 9Jayaramu T 9 

I have a field called ERP Instance Id. This field comes under Service Contracts.

I have a field called ERP Instance Id. This field comes under Service Contracts.
I have ERP Instance Id. I wanted to know the Service Contract ID based on that ERP Instance Id at SFDC.
Raj VakatiRaj Vakati
Use this SOQL 
List<ServiceContract > sc = [Select Id from ServiceContract where ERP_Instance_c='YOUR_ERP' ]