I am trying to retrive the FLA permissions for a Case object standard field "BusinessHoursId" by using below package file content,but the Admin profile which i retrive didn't contain the FLA of "BusinessHoursId".

I have to move the FLA of "BusinessHoursId" field from one sandbox to other, how can i achive this there is any workaround for this issue?

enter image description here

1 Answer 1


Looks like ANT Migration Tool doesn't allow to migrate FLS for standard fields of standard objects.

Metadata API Documentation says here and here that you can retrieve and deploy only Custom field permissions. So it is not possible to migrate Standard Field Permission by ANT Migration Tool since it is using Metadata API which doesn't allow to do that.

Anyway you can use a URL Hack to copy FLS from one sandbox to another


if you have some active confirmation token you can specify it to perform this operation in one click otherwise you will receive message that "The page you submitted was invalid for your session. Please click Save again to confirm your change." and will have just to click save.

The request url is https://test.salesforce.com/_ui/common/config/field/StandardFieldAttributes/e and parameters are

setupid = CaseFields - Setup Id Entity name

id = BusinessHours - standard field name (or custom field id)

type = Case - standard object name (or custom object id)

save = Save - command to perform save even in GET request

d00eE0000000z6ChIAI = 1 - Set "Visible" checkbox for profile with Id 00eE0000000z6ChIAI

r00eE0000000z6ChIAI = 1 - Set "Readonly" checkbox for profile with Id 00eE0000000z6ChIAI

_CONFIRMATIONTOKEN = Vmp...o - Confirmation token of action, used to perform action in one click (read above)

  • I am still facing this issue in 2022. Do you happen to know if salesforce provide a work around for this or added capability in metadata api @Patlatus
    – Cloud Man
    Commented Feb 14, 2022 at 21:56
  • I am not aware @AsifK
    – Patlatus
    Commented Feb 15, 2022 at 8:41

You must log in to answer this question.

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