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 Apps / Issue in Getting respo...
Power Apps
Unanswered

Issue in Getting response from Power Automate to PowerApp

(0) ShareShare
ReportReport
Posted on by 145

Hi,

 

I am trying to get records of Audit History from Flow to Canvas App.

So I have created Flow, got the record in Json format and I am passing that Json data to PowerApps using Response to PowerApps.

 

I am able to call flow from PowerApps but not able to access collection data which came from PowerApps.

Community18_3.png

 

This is the json 

 

 

 

[
 {
 "ChangedBy": "CFS Admin",
 "ChangedField": "cf_quarter",
 "ChangedOn": "25-05-2020 13:18",
 "Event": "Create",
 "NewValue": "Q3",
 "OldValue": ""
 },
 {
 "ChangedBy": "CFS Admin",
 "ChangedField": "cf_quarter",
 "ChangedOn": "25-05-2020 13:18",
 "Event": "Create",
 "NewValue": "Q3",
 "OldValue": ""
 },
 {
 "ChangedBy": "CFS Admin",
 "ChangedField": "cf_quarter",
 "ChangedOn": "25-05-2020 13:18",
 "Event": "Create",
 "NewValue": "Q3",
 "OldValue": ""
 },
 {
 "ChangedBy": "CFS Admin",
 "ChangedField": "cf_quarter",
 "ChangedOn": "25-05-2020 13:18",
 "Event": "Create",
 "NewValue": "Q3",
 "OldValue": ""
 },
 {
 "ChangedBy": "CFS Admin",
 "ChangedField": "cf_quarter",
 "ChangedOn": "25-05-2020 13:18",
 "Event": "Create",
 "NewValue": "Q3",
 "OldValue": ""
 },
 {
 "ChangedBy": "CFS Admin",
 "ChangedField": "cf_quarter",
 "ChangedOn": "25-05-2020 13:18",
 "Event": "Create",
 "NewValue": "Q3",
 "OldValue": ""
 },
 {
 "ChangedBy": "CFS Admin",
 "ChangedField": "cf_quarter",
 "ChangedOn": "25-05-2020 13:18",
 "Event": "Create",
 "NewValue": "Q3",
 "OldValue": ""
 }
]

 

 

 

 

I am collecting the response from Flow in PowerApp using this ClearCollect:

 

 

 

ClearCollect(
 AuditHistoryRecord,
 AuditHistory.Run(ThisItem.Objective)
);

 

 

 

 

This is collection which I am getting.

Community18_2.png

 

Any help is Appreciated.

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Have you tried:

    ClearCollect( AuditHistoryRecord, AuditHistory.Run() )

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • KrishnaV Profile Picture
    5,023 on at

    Hi @tjalui,

     

    Change the way how you are setting the body of the Response to:  body('Execute_a_SQL_query').ResultSets.Table1

    Please find the below-detailed article from @briandan explaining step by step to address this issue
    https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/

     

    I hope this resolved your issue if you see any challenge let me know I am always happy to help.

     

    Regards,

    Krishna
    If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tjalui ,

     

    Could you please share more details about your scenario?

    What is the output of 'Run a child flow' action? Please share the run result of the flow.

    Sik

  • tjalui Profile Picture
    145 on at

    The flow I am using is passing the correct json.

    But in the PowerApp where I am calling the flow it is taking boolean as Datatype.

    Community18_4.png

     

    I tried adding different basic flows and returned String value and still it is showing boolean as Data Type.

    I am not sure where things getting are wrong.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tjalui ,

     

    Please share the details about your flow and its result, and then we can help you diagnose the issue.

    Sik

  • tjalui Profile Picture
    145 on at

    This is the flow which should return records of Audit History.

     

    Community18_5.png

     

    Run a child flow calls another flow which gets all the records of Audit History.

    Then I am Parsing the Json which I get from the "Run a Child Flow" step.

    I am filtering only the records and getting it into Array.

    This is the Response which is Passed in PowerApp.

     

    [
     {
     "ChangedBy": "CFS Admin",
     "ChangedField": "cf_quarter",
     "ChangedOn": "25-05-2020 13:18",
     "Event": "Create",
     "NewValue": "Q3",
     "OldValue": ""
     },
     {
     "ChangedBy": "CFS Admin",
     "ChangedField": "cf_quarter",
     "ChangedOn": "25-05-2020 13:18",
     "Event": "Create",
     "NewValue": "Q3",
     "OldValue": ""
     },
     {
     "ChangedBy": "CFS Admin",
     "ChangedField": "cf_quarter",
     "ChangedOn": "25-05-2020 13:18",
     "Event": "Create",
     "NewValue": "Q3",
     "OldValue": ""
     },
     {
     "ChangedBy": "CFS Admin",
     "ChangedField": "cf_quarter",
     "ChangedOn": "25-05-2020 13:18",
     "Event": "Create",
     "NewValue": "Q3",
     "OldValue": ""
     },
     {
     "ChangedBy": "CFS Admin",
     "ChangedField": "cf_quarter",
     "ChangedOn": "25-05-2020 13:18",
     "Event": "Create",
     "NewValue": "Q3",
     "OldValue": ""
     },
     {
     "ChangedBy": "CFS Admin",
     "ChangedField": "cf_quarter",
     "ChangedOn": "25-05-2020 13:18",
     "Event": "Create",
     "NewValue": "Q3",
     "OldValue": ""
     },
     {
     "ChangedBy": "CFS Admin",
     "ChangedField": "cf_quarter",
     "ChangedOn": "25-05-2020 13:18",
     "Event": "Create",
     "NewValue": "Q3",
     "OldValue": ""
     }
    ]

    This is the schema used in the Response.

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "ChangedBy": {
     "type": "string"
     },
     "ChangedField": {
     "type": "string"
     },
     "ChangedOn": {
     "type": "string"
     },
     "Event": {
     "type": "string"
     },
     "NewValue": {
     "type": "string"
     },
     "OldValue": {
     "type": "string"
     }
     },
     "required": [
     "ChangedBy",
     "ChangedField",
     "ChangedOn",
     "Event",
     "NewValue",
     "OldValue"
     ]
     }
    }

     

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @tjalui ,

     

    Please go to Run History of the flow to show the running details of each action.

    Snipaste_2020-05-29_10-41-33.pngSnipaste_2020-05-29_10-41-21.png

    Sik

  • tjalui Profile Picture
    145 on at

    This is the Run history of the flow.

    Community18_6.pngCommunity18_7.pngCommunity18_8.pngCommunity18_9.pngCommunity18_10.pngCommunity18_11.pngCommunity18_12.pngCommunity18_13.png

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 404

#2
timl Profile Picture

timl 344 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

Last 30 days Overall leaderboard