Forum Discussion

JestonMorris's avatar
JestonMorris
Copper Contributor
Mar 25, 2022
Solved

MS Forms -> Dynamics 365 (Multiselect Options)

When a 'MS Form' is submitted, I want to create a Dynamics 365 record. I have no issue w/ this until a (multiselect option) in MS Forms is applicable w/ the desire to take those values and populate a...
  • JestonMorris's avatar
    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

Resources