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
Mike LeachMike Leach 

ExternalID Metadata Lost on Packaging

Has anyone else seen this?
 
1) Create a custom object
2) Create a custom field on object and mark it as "ExternalID"
3) Use field as primary key in upsert calls and all works fine.
4) Package and upload to AppExchange
5) ExternalID gets set to false. Upserts fail.
 
Perhaps AppExchange pre-processing makes the assumption that only customers can defined External IDs? That makes sense for native objects, but not custom objects designed to behave in a composite context.
 
Bug? Operator error in packaging? Expected behavior?
 
Thx!
 
-Mike
Ron HessRon Hess
sounds like a bug,
I've inserted an issue into our system, bug # 92862,
Subject: package an ExternalID field, then install from appexchange, field is no longer ExternalID

it may take a few days for our team to research this, please check back or call support and ask about this issue by number.



Ron HessRon Hess
Ok, this issue has been investigated, the External ID checkbox creates an index on that field, and it is a current limitation that "custom indexes" are not packageable.

Therefore, this is not an actual bug in the package / install process, and this issue would become a feature request.

Until then,
You will have to document for your end users that they need to go into the field definition and enable the custom index / external ID after install.



Mike LeachMike Leach
Thanks Ron. We'll probably implement update instead of upsert to reduce the configuration overhead.
iskrishnaiskrishna
We have a similar problem. Has this feature been implemented yet? If not, we too may have to go the way of re-coding to replace upsert with update and insert calls.

Krishna
Jim Yu.ax185Jim Yu.ax185
External IDs can be packaged in the Winter '07 release.

Best,

Jim

Director, Platform Product Management
iskrishnaiskrishna
Thanks for the update. I noticed that in the pre-release version. That makes it a lot easier.

Krishna
Mike LeachMike Leach
Well done! Thx!