Updating enumeration definition across environments | Community
Skip to main content
lukkyluke
Level 2
August 27, 2020
Question

Updating enumeration definition across environments

  • August 27, 2020
  • 1 reply
  • 1361 views

Hi,

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jonathon_wodnicki
Community Advisor
Community Advisor
September 3, 2020

Hi,

 

Delete before importing and reset the counter accordingly.

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

 

Thanks,

-Jon

lukkyluke
lukkylukeAuthor
Level 2
September 4, 2020

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