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 / Process Multiple Items...
Power Automate
Answered

Process Multiple Items in one Field of Text

(1) ShareShare
ReportReport
Posted on by 89

Hello:

 

I'm in the process of create Flow where is required process that runs in a cycle for each of the items. Example: 

 

crirojsab_0-1628619310403.png

In the attach image I need to process the flow for each of the PGD Centers but at the same time for each center I need to assign all the Audit rules. 

 

I was thinking use apply to each because at the time of read the data clearly Power Automate make a difference of each of the PGD Center Values in the Sharepoint Field. Example: 

 

{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 5,
"Value": "PGD Lebanon"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 3,
"Value": "PGD Costa Rica"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "PGD Argentina"
}
]

 

I even thought in add the values into one array but then had the problem that i don't have a clue on how to process the array. More than appreciated any help that you can provide.

Regards

crirojsab 

 

Categories:
I have the same question (0)
  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @crirojsab 

     

    Using a sample Array of Objects similar to yours (had to change it slightly for testing since using a dummy Compose), you can process like this:

     

    1) use Apply to Each

    2) Use an expression like this:

     

     

     

     

    items('Apply_to_each')['Value']

     

     

     

     

    Check if it helps.

     

    Example:

     

    Sample Flow Definition:

     


    81221-f02.png

     

    Sample Input, which is:

     

     

     

     

    [
    {
    "something": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 5,
    "Value": "PGD Lebanon"
    },
    {
    "something": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 3,
    "Value": "PGD Costa Rica"
    },
    {
    "something": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    "Id": 1,
    "Value": "PGD Argentina"
    }
    ]

     

     

     

     

     

    the, entering into an Apply to Each:

    81221-f03.png

    "Outputs" under "Select an output from previous steps" in Apply to Each is the "Outputs" from "Compose" above (i.e. the test/dummy array) for which the Apply to Each is iterating over.

    Compose 2 shows "Current item" - which I picked from Dynamic Content - this is here for illustration purposes. "Current item" here is actually equivalent to

     

     

     

     items('Apply_to_each')

     

     

     

     

    So, to process it, let's just access the value directly, like this:

     

     

     

     

    items('Apply_to_each')['Value']

     

     

     

    The expression 

    81221-f04.png

    is here in Compose 3 in this example - and something like this is the one that you should use in your case to access the value directly.

     

    Below, check a test Flow run to see the results:

     

    Test Run Result (it works):

     

    81221-f01.png

     

    Notice "PGD Lebanon" as the output of Iteration #1 of the Apply to Each of the test run above.  Only Iteration #1 is shown, but there are actually 3 iterations in this example. When checking the other Iterations, they show the correct expected values for those, too!

     

    Check if something like this helps you.

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard