web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Inserting multiple val...
Power Automate
Unanswered

Inserting multiple values in Sharepoint choice field through JSON

(0) ShareShare
ReportReport
Posted on by 2

I am trying to do the following: 

 

I have data in 1 list (List A) that needs to be transferred to a different list (List B). In List A I have a multiple choice field that can contain multiple options. Here comes the difficulty I am facing:

 

- The flow is setup generic, where I use variables to identify list B, resulting in formatting the item in JSON: 

 

Mmmarkk_0-1696403275533.png

The approach in the screenshot doesnt work. Can anyone help me how I should do this and what datatype the value should be (array, string or something else?)

 

Many thanks in advance!

 

Mark

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Mmmarkk,

     

    Normally you can use an array for the multi-choice field value in the body.

     

    The structure of that value would be something like:

     

    [
     {
     "Value": "C"
     },
     {
     "Value": "D"
     }
    ]

     

     

    You can also see that when you switch to entire array input when you create an item in the list (without the string variables)

     

    structure_array.png

     

    Because you used variables for the site and list you can use the below (I assumed the Title field is still needed for your item, if you removed that also remove that from my example).

     

     

    {
    "Title": "Testing",
    "Soortincident_x002f_ongeval":
    [
     {
     "Value": "C"
     },
     {
     "Value": "D"
     }
    ]
    }

     

     

    structure_array02.png

     

    The result should be something like below

     

    soortincidenten_test.png

  • Mmmarkk Profile Picture
    2 on at

    Hi @Expiscornovus ,

     

    The values would be dynamic as well (limited though to the amount of choices), would you then do the following (lets say if there are 3 choices possible)

     

    Mmmarkk_0-1696418926806.png

    I am going to try this at least, and will let you know if it works!

     

     

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Mmmarkk,


    So, your options always get retrieved as a string where each option is separated by a comma?

     

    A,B,C,D

     

     

    If that is the case you can make that part dynamic as well, you could convert the string to an array by using a split on the comma character. After that you can use a Select action to format it so it uses the array structure I demonstrated earlier and use the output of the Select in your create item action instead.

     

    Below is a second example to demonstrate this

     

     

    split(variables('Options'), ',')

     

     

    select_action.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard