Skip to main content

Hi Experts,

Is there a way to query the 'OwnerId' account standard field ID?

 

Thanks,

Gidi

 

#SOQL Queries  #SOQL Query

5 answers
  1. Sep 19, 2021, 9:52 AM

    Hi Gidi,

     

    I don't think you can query for the field in SOQL - at least not from the FieldDefinition object (using the tooling API). However, you should be able to get the field information from Apex using the Schema namespace. Is there a specific reason you need it in SOQL, or can you create an Apex service to return these results?

0/9000