Forum Discussion
MS Forms -> Dynamics 365 (Multiselect Options)
- Mar 26, 2022
I solved this on my own. Probably not the most efficient way, but it works.
Parse JSON
Create two integer vars
Create an array var
Create two string vars
Put the Parse JSON in an array var
Switch on each value from the array
if the value equals the case, store the value (crm field) into a string var but w/ a ', ' at the end
default, store the value (crm field for 'other') into the string var & store the value into the other string var for 'other'
Set an integer var to the array length
Set the other integer var to the array length - 2 (removes that final ', '
substring
profit
I solved this on my own. Probably not the most efficient way, but it works.
Parse JSON
Create two integer vars
Create an array var
Create two string vars
Put the Parse JSON in an array var
Switch on each value from the array
if the value equals the case, store the value (crm field) into a string var but w/ a ', ' at the end
default, store the value (crm field for 'other') into the string var & store the value into the other string var for 'other'
Set an integer var to the array length
Set the other integer var to the array length - 2 (removes that final ', '
substring
profit