Topic
- Use SalesforceXytoolsForSublime To Build fieldPermission and objectPermission
- Build permissionset file
Environment
- Make sure you can login your sfdc. Test it : SFDC-XY > Login SFDC
Create Permission.xml
Open SObject Manager Page
Permission Builder> Build Profile FieldPermissions
Select your field
The Permissionset file :
<?xml version="1.0" ?>
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
<fieldPermissions>
<editable>true</editable>
<field>Blog__c.comment__c</field>
<readable>true</readable>
</fieldPermissions>
<objectPermissions>
<allowCreate>true</allowCreate>
<allowDelete>true</allowDelete>
<allowEdit>true</allowEdit>
<allowRead>true</allowRead>
<modifyAllRecords>true</modifyAllRecords>
<object>Blog__c</object>
<viewAllRecords>true</viewAllRecords>
</objectPermissions>
<hasActivationRequired>false</hasActivationRequired>
<label>AllPermission</label>
<license>Salesforce</license>
</PermissionSet>
Deploy permission.xml
right click , deploy it.