Extract multiple choice column into collection variable for further processing

  • 31 July 2017
  • 2 replies
  • 68 views

Badge +10

Hi community,

I have a multiple choice column ("Fachabteilungen") which I need later in my workflow to address tasks:

206081_pastedImage_2.png

Therefor I need to extract the input of this column, result should be this

Fachabteilung 1

Fachabteilung 2

Fachabteilung 3

I did the following:

1. Query list and write into a collection variable colFachabteilungen

   Result: colFachabteilungen AFTER QUERY LIST: [["Fachabteilung 1","Fachabteilung 2","Fachabteilung 3"]]

2. Regular expression Split collection variable colFachabteilungen

206083_pastedImage_3.png

   Result: colFachabteilungen AFTER SPLIT: ["[[""Fachabteilung 1""


2 replies

Userlevel 5
Badge +14

I believe you need to

- query list just like as you do

- set up for each loop

- within the loop, get an element from collection

- process the element

with regular expressions you just turn one collection into another collection

Badge +10

Yeah, that is exactly what I did in the meantime!

  1. Query
  2. Loop
  3. Get item from collection (COLL -> TEXT)
  4. Process text with replace string action

Cheers

mai-kel

Reply