You need to sign in to do that
Don't have an account?
Radnip
A tricky one: Is it possible to get the field ID for a field in Salesforce
I'm looking at creating an app but one of the things which would make things a WHOLE lot easier would be the ability to get the Salesforce ID for a particular field (IE not the API name or label but the actual ID). Its not in the meta and I wondered if there was any sneaky way to get it?
Think I found my answer... No :)
I found this post earlier today and I think it might be what you're looking for. I pasted what might be the relevant part below. Hope it helps.
http://phollaio.tumblr.com/post/22058010643/salesforces-url-structure
Objects’ specific URLs
Every Salesforce’s object has it’s specific URL, here are listed the links to the standard objects:
Objects URLs Objects’ code
As of now: No. Its not possible to do it in apex.
@michael_mcmahon I need it for the custom field IDs not the objects.
@Yoganand You say its not possible in Apex is it possible in another way? I'm thinking of a very hacky way of doing it but isn't great :(
If the number of fileds are few then you can use custom labels to store id's and then use them.
But I'm assuming you would have to manually populate the custom labels with the Id values? I'm trying to find a programatic way of getting the IDs without needing to screen-scrape which I REALLY don't want to do.