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 / Convert string to arra...
Power Automate
Answered

Convert string to array, append array, then create SharePoint item and populate multiple choice field

(1) ShareShare
ReportReport
Posted on by 6

Hello, 

I recently saw a thread related to converting a sting to array which helped me a lot. However, i am not able to use that solution in this situation without creating duplicate values.

I have a list of rows in an excel table and 

in each row, i have a field with multiple string values separated by ";"

what i need to do is for each row, convert this field strings to array and then

create a SharePoint list item and populate a multiple choice field using those arrays

 

when I use Append to array option, it works, however flow keeps appending the arrays for all rows in the table and populate them in the SharePoint record.

Can you please advise?

 

I am able to use the split() function in compose to get following:

rmodi_0-1641569516122.png

I am not sure how to take this output and populate the multiple choice field when creating a list item.

Thanks in advance for your help.

@abm 

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @rmodi 

     

    Declare a variable array data type.

     

    Split your choice value using split() expression.

     

    Append the array using the following format:

     

    {

    "Value":item()

    }

     

    Finally map the array value under the SharePoint Create Item action step.

     

    Thanks

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard