Store (de-)selected option of multiselect-field in variable

Hi,

Is it possible (workflow) to store the selected or deselected option of a multiselect in a separate variable.

In my current workflow, every change (select/deselect) is immediately and automatic saved in the backend.

I should have to extend this workflow but I can’t find

  1. How to retrieve only the item
  2. How to “recognize” if user selected (added) or deselected (removed) an item

Hi Wim :waving_hand:

Yes of course, you can run a workflow inside the multiselect with the “On Change” Trigger.

But first you’ll need to create a variable of type Object to store the results (In my case I called it “Select Value” )

On that workflow you will run a “Change Variable value” which will update a certain variable whenever there’s any sort of change on the multi select (Selection, deselection).

There you will need to bind the Variable value to the “Event.value”

Hope this helps!

Hi @Agustin_Carozo ,

Thanks for the suggestion and I tried it. But I can’t select the [T]-value, only “value” or “value[0]”.

Both gives the first item in the array, not the item that changed. What am I doing wrong?

This is how the multi-select gets its values (this works perfectly)

I think the issue might be that the multiselect expects the following format:
Object with a “value” and a “label” and you seem to be returning a single value.

So your multiselect should be receiving an object with those 2 values per item and also you’ll need to create a variable of type “Object” to store those values if you want to use them in the workflow as a second step.