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 Platform Community / Forums / Power Automate / Invoke an HTTP request...
Power Automate
Unanswered

Invoke an HTTP request action failed with "invalidRequest"

(0) ShareShare
ReportReport
Posted on by 3

Hi Community,

I am having issues with an "Invoke an HTTP request" action, that adds rows into an Excel table stored in a SharePoint site.

The table is successfully created, and the Drive ID, Item ID and Table ID are grabbed from that action and passed to the problematic "Invoke an HTTP request".

The URI I am passing in the "Invoke an HTTP request" action is as per below:

 

https://graph.microsoft.com/v1.0/drives/@{outputs('Compose_Drive_ID')}/items/@{outputs('Compose_Item_ID')}/workbook/worksheets/Sheet1/tables/@{outputs('Compose_Table_Name')}/rows/

The body request I am sending is just an array representing just one row of data.

See image below for more details.

 

InvokeAnHTTPRequestError-1.png

The error reads "invalidRequest".

 

InvokeAnHTTPRequestError-2.png

What am I doing wrong?

 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @IPLO365 

    I test it in my side , this is due to you pass the wrong body in your http request.

    vyueyunmsft_0-1712726648557.png

    You need to pass the a 2-dimensional array of unformatted values of the table row.

    TableRowCollection: add - Microsoft Graph v1.0 | Microsoft Learn

     

    And this will run successfully:

    vyueyunmsft_1-1712726736912.png

     

    So you need to convert your body in your http request.

    For example, this is the flow:

    vyueyunmsft_3-1712727260717.png

    item()?['OData__dlc_DocIdUrl']

    item()?['Title']
    item()?['eDocsNo']

     

    And you can test it here:
    Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    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

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