Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Updating enumeration definition across environments


Level 3


I am trying to find a way to update enumerations (and it's values) across different environments. The main problem for us is when values are deleted from the package definition, they are not deleted from the environment where the package is imported. Adding new values is not a problem.

I would like to add a script in the package it self with an installScript tag in the xml, but I am not sure if the package being imported is available in the installScript-context? The name of the entity would be enough to solve my problem. I have tried to investigate which variables that are available


Another approach would be to delete all enumeration values, prior to importing the package. But I would like to avoid that approach since this would cause the enumValue-counter to increase quickly.

3 Replies


Community Advisor



Delete before importing and reset the counter accordingly.

Alternatively, use a periodic workflow to manage enumeration sync with a central file location or db.





Level 3

Ok, so you have no idea on how to access the package it self in an already existing variable, from the install script? Also, I am not sure about what you mean with resetting the counter? @Jonathon_wodnicki