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 / Returning Array from P...
Power Automate
Unanswered

Returning Array from Power automate to Power Apps error - expected object got array.

(0) ShareShare
ReportReport
Posted on by 19

Hello,

 

I am trying to retrieve array from power automate flow through action respond. But when I try to load response to collection i got following error: expected object got array.

ClearCollect(colDataRows,RetrieveRecords.Run("locationA"))

 

My schema for response activity: 

{
  "type""array",
  "items": {
    "type""object",
    "properties": {
      "DocumentNo": {
        "type""string"
      },
      "LocationCode": {
        "type""string"
      },
      "CityCode": {
        "type""string"
      }
    },
    "required": [
      "DocumentNo",
      "LocationCode",
      "CityCode"
    ]
  }
}
 
Body of the request:
[
  {
    "DocumentNo""240423-1257-LC4001",
    "LocationCode""LC4001",
    "CityCode"""
  },
  {
    "DocumentNo""240423-1257-LC4001",
    "LocationCode""LC4001",
    "CityCode"""
  }
]
Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Lukasj 

    I test it in my side , it works good:

    vyueyunmsft_0-1715676892102.png

    The result in my app:

    vyueyunmsft_1-1715676907253.png

     

    Can you show the error code in your side like a screenshot?

     

    Best Regards,

    Yueyun Zhang

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard