Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to match profile name to ant metadata profile name and vice versa?

Asked by Dylan Powell Apr 24, 2021 1.4K views 1 answer
Share

About this question

Probably you know System Administrator profile, if you try to migrate change to object or field or page or application or class permissions for the profile and you try to retrieve it, you will get an error.

Entity of type 'Profile' named 'System Administrator' cannot be found

However, if you retrieve all profiles, you might find 'Admin.profile' which looks like matching to System Administrator profile. How to match profile names? On Profile Standard object there is no field exposed containing 'Admin'. There is another profile called 'StandardAul.profile' amongst the ANT metadata files. I try hard to guess which profile it matches. Does it match to Standard Platform profile? Is there any general way to match Salesforce profile name (visible on Web Interface, in Developer Console) and if you query for it by SOQL query:

[select Id, Name, Description from Profile]

to ANT Metadata File name? Retrieving package.xml containing:

* Profile


Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.