You need to sign in to do that
Don't have an account?
Ankur Srivastava
Mapping API Names to the Label Names using Metadata API
I am using Metadata API for a certain requirements related to profiles. I am using getFullName() method to retrieve the Profile name.
However I am finding a difference in the actual result returned.
For eg. if the Profile Label Name is : System Administrator, so the returned name is : Admin
Since the count of profiles is huge so I am looking for a programmatic approach to this mapping.
However I am finding a difference in the actual result returned.
For eg. if the Profile Label Name is : System Administrator, so the returned name is : Admin
Since the count of profiles is huge so I am looking for a programmatic approach to this mapping.
Though I'm not 100% sure, I believe the only time the getFullName will differ is on *standard out of the box* profiles
Additionally, you can query the profile object in soql, and bypass the metadata api. In which case you'll want something like this: