You need to sign in to do that
Don't have an account?
sushanto_dodo
How to set object permissions using ANT migration toolkit for Salesforce
Can someone kindly provide an outline on how can we set object permissions for a profile using ANT migration toolkit for Salesforce?
Hi Sushanto,
In order to change the Object Permissions in one or more profiles, you will have to first retrieve the object along with the profiles.
For instance, my package.xml to retrieve the files will be as follows:
This will give me all the Profiles metadata along with the object (Test__c). If i open any profile metadata file, this is how it looks.
In the profile file, you will have to change the values under <objectPermissions> tag. Once saved, you can then deploy the profile along with the object file. You can use the same package.xml file, you used to retrieve.
Hope this helps. Let me know if you have any queries.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.