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 / How to check the Array...
Power Automate
Suggested Answer

How to check the Array size

(1) ShareShare
ReportReport
Posted on by 48
Dear All,
 
I have a (Custom Object) Array variable and i want to check the size. how can i do it in power automate desktop.
 
I have tried with length and count function but it's not working. can you please suggest.
 
Thanks
I have the same question (0)
  • Srini007 Profile Picture
    3,463 Super User 2026 Season 1 on at
    Hi,
     
    Since this is a custom object, it would be more efficient to append the values to a temporary array variable and then use the Length action. First, declare a temporary array variable, and then use the Append to List action to add the values to that temporary array.
     
    If I have answered your question, please mark it as the suggested answer. If you like my response, please give it a Like.
    Regards,
    Srini
     
     
  • Suggested answer
    Deenuji_Loganathan_ Profile Picture
    6,250 Moderator on at
    Hi 
     
    You can refer the below example:
     
    Power Automate Desktop Code (Copy and paste into your power automate desktop designer):
    SET SampleJson TO $'''{
        \"configurations\": [
            {
                \"name\": \"Config1\",
                \"value\": \"Value1\"
            },
            {
                \"name\": \"Config2\",
                \"value\": \"Value2\"
            },
            {
                \"name\": \"Config3\",
                \"value\": \"Value3\"
            }
        ]
    }'''
    
    Variables.ConvertJsonToCustomObject Json: SampleJson CustomObject=> CustomObject
    SET ConfigCount TO CustomObject.configurations.Count
    
     
     
    Thanks,
    Deenuji Loganathan 👩‍💻
    Power Automate Desktop Community Champion 🤖
    Follow me on LinkedIn 👥
    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀
     

     

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 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard