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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Convert a string to array
Power Automate
Answered

Convert a string to array

(0) ShareShare
ReportReport
Posted on by


I need to convert the string   10, 16   to look like below.

 

[
{
"Id": 10
},
{
"Id": 16
}
]

 

 

I have tried examples and they fail.  There isn't enough detail on what I need to do.  I tried compose but it fails I tried split it fails I tried all day it freakin fails.

 

Please tell this frustrated person how to convert a string to an array. 

 

Forums and Google have utterly failed for hours of searching.

Categories:
  • Verified answer
    abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @ComputerHabit2 

     

    Please follow the below steps:

     

    image.png

     

    Above expression is as follows:

     

    split(outputs('Compose'),',')

     

    image.png

     

    Above Compose2 action step expression is as follows:

    item()

     

    Here is the test result:

     

    image.png

  • ComputerHabit2 Profile Picture
    on at

    Thank you for helping me through my frustration moment.  

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard