cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
RodrigoF
Level: Powered On

Length of a json array

Hi - is there a function that tells you the total items in a json array?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Length of a json array

Hi @ RodrigoF,

 

You could use the length() of workflow definition language to get the length of a json array.

 

You could refer to link below to learn more details about workflow definition language:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

I have made a test on my side and I have created a flow as below to get the amount of the items in sharepint list:

1.png

The screenshot of the sharepoint list as below:

 2.png

The flow would run successfully as below:

 3.png

 

Regards,
Alice Zhang

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Length of a json array

Hi @ RodrigoF,

 

You could use the length() of workflow definition language to get the length of a json array.

 

You could refer to link below to learn more details about workflow definition language:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

I have made a test on my side and I have created a flow as below to get the amount of the items in sharepint list:

1.png

The screenshot of the sharepoint list as below:

 2.png

The flow would run successfully as below:

 3.png

 

Regards,
Alice Zhang

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 183 members 5,909 guests
Please welcome our newest community members: