0

I created a CustomField using the tooling API: POST "tooling/sobjects/CustomField" But it creates a custom field without the permissions on "Field-Level Security for Profile" As I understood right I need to set the fieldPermissions on this custom field.

I'm trying to do this: POST to "tooling/sobjects/Profile/" With this payload.

{
    "Metadata":{    
        "fieldPermissions": [
            {
                "editable": false,
                "field": "Contact.MyCustom__c",
                "hidden": false,
                "readable": true
            }
        ]
    },
    "FullName" : "Contact.MyCustom__c"
}

And I'm getting the error "INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY" What I'm missing from this? Should I use other resource to set this permission?

2

0

You must log in to answer this question.

Browse other questions tagged .