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
KevlangdoKevlangdo 

metadata ProfileFieldLevelSecurity

How can I set the field level security for all custom fields in each of the profiles through the metadata in the profile files in Force IDE. Everything I try generates compile errors.

Am I in the right xml file?

Example:
 
<?xml version="1.0" encoding="UTF-8"?>
<Profile xmlns="http://soap.sforce.com/2006/04/metadata">
    <custom>true</custom>
    <userLicense>Salesforce</userLicense>
    <userPermissions>
        <enabled>true</enabled>
        <name>ApiEnabled</name>
    </userPermissions>
    <userPermissions>
        <enabled>true</enabled>
        <name>AssignTopics</name>
    </userPermissions>
    <userPermissions>
        <enabled>true</enabled>
        <name>ChatterEditOwnPost</name>
    </userPermissions>

 
NagendraNagendra (Salesforce Developers) 
Hi Kevin,

May I suggest you to please check with below post from stack exchange community which might help you to accelerate further. Please let us know if this helps.

Regards,
Nagendra.