Can we mark a field as External Id in a patch org?

I need this so that the field will be indexed.

  • Question is short but clear IMHO. Added a couple of links to it.
    – Keith C
    Aug 23, 2017 at 13:11

1 Answer 1


I assume you can't as that would violate the key principle of "while ensuring that subscribers experience no visible changes to the package" that also ensures a patch org can be upgraded to the next non-patch version.

Looking in a patch org to confirm, for a custom object field I see the option disabled:

External ID - Set this field as the unique record identifier from an external system

So you can't.


In fact the restriction is broader than patch orgs: Allow edit of ExternalId for Managed-Deployed custom fields.

  • Right - you can't later decide a field should be an external id, unique etc or vice - versa - that piece is locked once the field is packaged Aug 23, 2017 at 13:11
  • Thanks @Keith. Yes, the restriction is broader - we cannot mark as external id in packaging org as well.
    – ajinkyah
    Aug 24, 2017 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.