Showing results for 
Search instead for 
Did you mean: 

Unable to Append the API data to an array using Apply to each in flow

Hi team,

Our aim is to get some data from the API based on some filters and store it in a collection in the PowerApps.

Below are the steps we used in the flow:

1. Used Execute a query control to fetch the rule ids from the database based on a case number value.

2. Used Apply to each control to iterate over these rule ids.

   a. Pass this rule id into the API to fetch the data (the data might be some 3-6 rows).

   b. Do some manipulations on the array data.

   c. Append this data to an array.

3. Send this data as a response to the PowerApps.


We are unable to achieve our results from the step 2 b . 

Could anyone help us on this issue?


Thanks in advance 


Super User
Super User

Hi @niteesha,


This is Power App Portal forum and your question refers to Power Automate. Please post your question here to get the answer faster.

If you find this post helpful consider marking it as a solution to help others find it.

Helpful resources


Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users


We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Users online (69,512)