What are promoted variables and how to create them on workshop?

I had an embedded module which has an object set filter, this object set filter is populated using an object set which is function backed, so the issue was whenever the user would close the embedded module and reopen it, the filter gets recomputed and loses its selection

But this was solved using promoted variables as shown in the image, but I don’t know how it was solved as it was not done by me, could I understand the concept of promoted variables and how to make one on workshop

If you’re looking for the external ID of a variable, this can be configured from the variable’s settings tab:

2 Likes

Hi @Joel , Thanks for the reply, but as I was going through the embedded module, saw this

but when I enabled state saving in the settings, saw that there was the state saving variable

That is why it was not connecting dots in my head that why doesn’t the variable show in state saving the variable, but apparently one can configure state saving enabled in setting, make state setting variables and if doesn’t need Module state on the top left, just disable but still the state saving variables work, Thanks!

Now the next challenge is, how do I make state saving conditional?

How to conditionally reset / retain Object Set Filter in embedded module when parent selection changes? - Ask the Community - Palantir Developer Community