web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

api data

(0) ShareShare
ReportReport
Posted on by 12

Hi,

I hope someone can help please.  Many thanks in advance.

What I want to be able to do is to make an API call to retrieve data, filter this data and then update a row in excel with it.

 

I am able to make the API call and retrieve the data with Parse Json. 

But I am not sure how to handle the data which is several hundred rows to update the table in excel.  I've tried a number of different ways following some other posts but am unable to make it work.  I think I need to initialize a variable and do a apply for each loop but both of these parts I dont really understand...

 

The error I receive is:

The variable 'alerts' of type 'Array' cannot be initialized or updated with value of type 'Object'. The variable 'alerts' only supports values of types 'Array'.

 

 

Categories:
I have the same question (0)
  • vikulkar Profile Picture
    on at

    Hi @Superfly69 ,

     

    You can make use of the Parse JSON action to parse the output of the API call.

    vikulkar_0-1624232216106.png

     

    There are many useful links available online on how to use this action and how to retrieve the output.

    One link you might find helpful is: http://johnliu.net/blog/2018/6/a-thesis-on-the-parse-json-action-in-microsoft-flow

     

    Thanks and Regards,

       Vikas K

  • Superfly69 Profile Picture
    12 on at

    Thanks Vikas.

    Yes I am using Parse Json and have reviewed the link.

    My flow is running now but when it gets to the last step which is to update a row in excel all of the inputs are null...

     

    Any idea why ?

     

    https://ibb.co/9hQdSCW

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard