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 / Trying to use Power Au...
Power Automate
Answered

Trying to use Power Automate desktop to get data using the Airtable API

(0) ShareShare
ReportReport
Posted on by 431

I assume I would use the Invoke Webservice Action but am not sure how to set it up. For airtable, I have my personal access token , base name, table name, URL  etc. But am not sure how to configure the InvokeWebService Dialog.TIA

I have the same question (0)
  • Steve48 Profile Picture
    431 on at

    I am the OP. This is what I have so far. I am getting an error: 

    Correlation Id: ba02fbbf-da9e-4013-b7a8-b563247c0ff4

    Specified value has invalid HTTP Header characters.
    Parameter name: name: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to invoke web service: Specified value has invalid HTTP Header characters.
    Parameter name: name. ---> System.ArgumentException: Specified value has invalid HTTP Header characters.
    Parameter name: name

    Steve48_0-1697672388870.png

     

     

  • Steve48 Profile Picture
    431 on at

    I am the OP. I went further but am getting this error:

    Specified value has invalid HTTP Header characters.
    Parameter name: name: 


    Steve48_1-1697672669517.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Try modifying it so it says Authorization: Bearer %pat%

    The error is caused by an incorrectly possitioned whitespace. There shouldn't be any whitespaces before the colon.

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

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Steve48 Profile Picture
    431 on at

    Hi @Agnius 

    I have made some progress. I redid some of my variables and am now getting a web response. It doesn't matter whether there is a space before Bearer. I get the same response in both cases. I wanted to get json data back which represents the contents of a table, but I am getting an HTML document back. I looked at the data and its hard to tell but it doesnt look like the contents of the table. If I copy the target url into my browser, the browser does navigate to the correct table and view (the targetURL includes the table and view ids). So my next step is to figure out how to extract meaningful data out of the response/ figure out how to get a json response. I included a screenshot of the response headers which says the response is text/html and not json. I also included a screenshot of the beginning of the web response, which is long.

    Steve48_0-1697730578136.png

    Steve48_1-1697731228102.png

    Steve48_2-1697731491066.png

     

     

     

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    What I meant in my previous message was that you needed to remove the space after "Authorization". Whether or not you have a space before "Bearer" is a different topic. I like to include one to make it easier to read, but it's not mandatory. However, spaces before the colon are not allowed.

     

    As to the other issue, it seems like you're not really targeting an actual API endpoint and are simply sending a request to a URL that is designed to return an HTML document (that a browser can convert to a table).

     

    Are you actually doing this according to some kind of an API documentation?

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Steve48 Profile Picture
    431 on at

    Hi @Agnius 

    you are correct. I had the wrong endpoint. I corrected that and now have an authorization/authentication error. I am working on solving that issue. Thanks for your help.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Glad I could help you. If you feel I've answered your question, please select my reply as the solution.

    Thanks.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard