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
BedrockMission!

Learn More

View all

Sign in to view all badges

Updating enumeration definition across environments

Avatar

Avatar
Validate 1
Level 2
lukkyluke
Level 2

Likes

8 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
lukkyluke
Level 2

Likes

8 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
lukkyluke
Level 2

26-08-2020

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

958 likes

Total Posts

1,079 posts

Correct Reply

506 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

958 likes

Total Posts

1,079 posts

Correct Reply

506 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

03-09-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