You need to sign in to do that
Don't have an account?
Stellar
How could I get field IDs?
Hi,
Could anyone please indicate if it is possible to retrieve field IDs in bulk or through API?
I only know one method that we can find them on the html pages, which are normally settled for standard fields or 15-character identifier for custom fields. Is there a way to capture them in whole or programmatically?
Any idea on this would be great for us. Thank you very much!
Best regards,
Stellar
Could anyone please indicate if it is possible to retrieve field IDs in bulk or through API?
I only know one method that we can find them on the html pages, which are normally settled for standard fields or 15-character identifier for custom fields. Is there a way to capture them in whole or programmatically?
Any idea on this would be great for us. Thank you very much!
Best regards,
Stellar
Just use below mentioned SOQL to query editor of developer console by making 'Toolin API' checkbox checked:
select Id from CustomField
All Answers
Just use below mentioned SOQL to query editor of developer console by making 'Toolin API' checkbox checked:
select Id from CustomField
Thank you very much. It seems working! Could you also instruct me how to retrieve IDs for standard fields?
In addition, does this mean all IDs for custom fields have been retrieved?
I am so grateful for your response.
Best regards,
Stellar
The api names of the standard fields are treated as Ids for themselves. Standard fields do not have alphanumeric Id format like custom fields have. To retrieve the api names of all the standard fields you will have to use below mentioned code:
Thanks a lot for your answer, but as I am not good at this. I need to have my team member to try the code later.
There is one more request: could you tell me whether it is possible to get the whole form of what can be retrieved? The problem is that even though we found the ids with your help, we cannot match them with the field names.
Is there a complete form or where I can get the resource from?
Many thanks,
Stellar
Yes, you can also retrieve the API names of the fields using below mentioned query from developer console:
select Id, DeveloperName from CustomField
Here DeveloperName gives field api name
Thanks,
Pankaj
Thank you so much. But I'm sorry to further bother you by asking where we should put the code you mentioned to retrieve the api names of all the standard fields. We tried it, but error showed up. Since we are quite new to Salesforce, I don't think we tried it in the right place.
Could you indicate in further details how we should proceed?
Many thanks,
Stellar