Skip to main content
Nintex Community Menu Bar

Create collection or dictionary from Multiple selection

  • August 10, 2016
  • 2 replies
  • 11 views

Forum|alt.badge.img+3

Hi,

I have a field where I can have multiple selections.

GED_1.1_MultipleChoice.png

In the workflow it gives me a string as result of the selections:

{"results":[{"Id":70,"Value":"DR - ALSACE FRANCHE-COMTE"},{"Id":72,"Value":"DR - BRETAGNE"},{"Id":76,"Value":"DR - COTE D'AZUR"}]}

What would be the best way to convert this value "{"results":[{"Id":70....." in a collection or dicitionary? I can manipulate the string to do it but it would be good to have an action for this.

Thanks

2 replies

Forum|alt.badge.img+13
  • Novice
  • July 18, 2017

Comprehensive answer for you here


Forum|alt.badge.img+17
  • Nintex Partner
  • January 29, 2018

The answer is It's both. The result is in a dictionary who's tag is "results". Put the value in a dictionary variable then go get the collection value that is within. In your case you have a third thing going on here because the ID and Value is in play. So once you have a collection variable you then can get each item of the collection using the action by that name, or a For Each loop. In both cases, you need to store the each item of the collection into another dictionary variable. At this point you can then get the dictionary items using the keys ID and Value.