0

I have one doubt --

Let say I have metadata of one profile = "abc.profile"

Custom object = "Custom_object__c"

Fields in it = Field1__c Standard Field = Record Type

Now If I see MetaData of my profile "abc.profile" , I can see that my Field1__c's field Permissions are listed there - Like

<fieldPermissions>
        <editable>false</editable>
        <field>Custom_Object__c.Field1__c</field>
        <readable>true</readable>
</fieldPermissions>

Then Why I dont see any Standard Field / RecordType field in profile metadata ?

Answer could be : You can not make them Readable=False (You have to edit object permissions = False, don't access anything) but little more technical Explanation / solutions / work around will do better for me.

Thank you !

2
  • 1
    Did you assign your profile to the correct record type ? Usually it's under <layoutAssignments> section
    – SL man
    Commented Oct 29, 2015 at 21:59
  • Yes, I will look in there. But why so ? is the question I want to find out. Commented Oct 30, 2015 at 11:49

1 Answer 1

1

Generally any ".profile" file will include recordtype data also. But this information will depend on how you choose to retrieve the profile. If you include, the field alone in your package xml then your profile file will contain metadata for field only. To get recordtype data you should include recordtype name in the package xml in unpackaged folder. see Constructing salesforce project manifest. so in essence .profile files will show the metadata only for components explicitly specified in unpackaged/package.xml folder.

Update: If you are using ANT, this is the structure of tags to be put in package xml:

<types>
<members>abc</members>
<name>Profile</name>
</types>

<types>
<members>sample</members>
<name>RecordType</name>
</types>

<types>
<members>CustomObject__c.CustomField__c</members>
<name>CustomField</name>
</types>

Then your extract should have profile abc which contains recordtype info.

If you are using eclipse & extracting full repository, then the recordtype info should be there in abc.profile. If not, it is likely that the recordtype is not assigned to abc profile in salesforce.

2
  • I have extracted whole project repository, and searched for each profile - each object, found for no-one ! Commented Oct 30, 2015 at 11:51
  • @NileshMendhe What tool are you using to extract? What does the package xml look like? Check if you have assigned recordtypes to abc.profile in salesforce?
    – Cloud Man
    Commented Oct 30, 2015 at 19:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .