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
CTU007CTU007 

Field level security through Eclipse?

Hi, it looks like FLS is not possible when creating new field using Eclipse.

 

So what is the easier way to do it?

JonPJonP

FLS is stored in a .profile object in Eclipse, but the easiest way to configure profile settings for a new custom field across multiple profiles is to create the field using the wizard under Setup (in your browser).  One of the last steps is to set the visibility and editability of the field for each profile.

CTU007CTU007

I need to create 14 date fields and 7 formula field:

Stage 0 start date --- Stage 6 start date

Stage 0 end date --- Stage 6 end date

 

then formula stage 0 duration --- stage 6 duration

 

I created 3 fields for stage 0 in UI and edited the fields for stage 1 to stage 6 in Eclipse, and tried to insert them in Eclipse, but somehow, I cannot. I remember I used to create new fields in this way.

 

That is why I asked how to do it in Eclipse, it would be much faster if possible.

 

EDIT: FLS on all 14 fields are same. But I cannot save to server:

 

    <fields>
        <fullName>S1_End_Date__c</fullName>
        <label>S1 End Date</label>
        <type>Date</type>
    </fields>
    <fields>
        <fullName>S1_Start_Date__c</fullName>
        <inlineHelpText>start date of stage 1</inlineHelpText>
        <label>S1 Start Date</label>
        <type>Date</type>
    </fields>
	<fields>
        <fullName>S1_Duration__c</fullName>
        <formula>S1_End_Date__c -  S1_Start_Date__c</formula>
        <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
        <label>S1 Duration</label>
        <precision>18</precision>
        <scale>1</scale>
        <type>Number</type>
    </fields>

 

If they can be saved/created, it is still easier to change FLS.