function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jose ZunigaJose Zuniga 

Importing Permissions, PermissionSets, and XML from DEV

Lets assume that I created an object in DEV, several permissions respect to that object were set -not necessarily by me- and now this object is deployed to production. If I want to retrieve all the information like field permissions, accessibility ones, etc etc, I know that information will be in the profiles and in the permissionSets folder. What I don't know is all the xml element types used to specify this information. Does anyone know this? What could be the case for classes?
 
Swayam@SalesforceGuySwayam@SalesforceGuy
Hi,

You can use below xml for permission Set for deploying
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>PermissionSet</name>
    </types>
    <version>26.0</version>
</Package>

Deploying profile is complicated, This may help you : 
http://salesforce.stackexchange.com/questions/2062/what-is-the-best-way-to-deploy-profiles-in-salesforce-especially-system-admin

Hope this helps !!
--
Thanks,
Swayam 
 
GauravGargGauravGarg
Hi Jose,

To find the particular Metadata (salesforce metadata) in XML, please find below links which might be useful to let you know all the available Metadata's:

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_types_list.htm

Thanks,
Gaurav