Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Split Json

(0) ShareShare
ReportReport
Posted on by 178

Hi Guys,

 

I have a collection being sent in Json format to power automate.

The collection has a few columns although I'm interested in the attachment number column

 

I need to split the collection at every 5th attachment.

For example my collection had 8 rows it will split at the 5th attachment number.

 

Leaving one collection with 5 rows and the other with 3.

 

Any help is greatly appreciated.

 

Thanks

  • v-liwei-msft Profile Picture
    v-liwei-msft on at
    Re: Split Json

    Hi @christian12 

     

    You can use the function chunk:

    Divide a string or array into equal-sized segments.

    I think this link will help you a lot:

    Power Automate Chunk Function Explained (zeitgeistcode.com)

     

    Best Regards,

    Levi

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard