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 :
Small and medium business | Business Central, N...
Answered

Export BC data through webservices + Power Automate OAuth

(0) ShareShare
ReportReport
Posted on by 260

Dear all.

I am having big trouble trying to deal with OAuth authentication for http connector in Power Automate.

I am using the HTTP call to get some master data from Business Central and post them to a csv file.

I have managed to call the api through postman , following the guide that yzhums  proposes ( https://yzhums.com/20690/ ) , but i haven't managed to call the api through Power Automate.

Can someone explain to me what do i need to insert on each and every one of the fields below?
pastedimage1670693100428v1.png

Has anyone managed to use Power Automate to retrieve BC Data, by using OAuth instead of Basic Authentication?

Thank you in advance lads.


I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    hi

    look my blog

    danieleincalza.blogspot.com/.../oauth20-calling-custom-ws-business.html

    check my answer if it helped you, thanks

    DANiele

  • AntonisK Profile Picture
    260 on at

    Since i need a Get request to retrieve data within BC , what must my first http call be?

    As far as i remember, i cant use body scope in a get request.

    https://prnt.sc/nOrtA4NwGe9j

  • Verified answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    hi

    make an initial call to retrieve the beare token

    pastedimage1670749838440v1.png

    METHOD: POST

    URIlogin.microsoftonline.com/.../token

    HEADERS: Content Type - > x-www-form-urlencoded

    BODY : grant_type=client_Credential&client_id={myAppID}&client_Secret={MyCLientSecret}&scope=https://api.businesscentral.dynamics.com/.default

    then makes the second call for WS BC

    pastedimage1670749970277v3.png

    in my example I do a post, if you need to retrieve data from BC you do a GET

    check my answer if it helped you, thanks

    DANiele

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    you can check below link

    www.navwithnav.com/.../

  • AntonisK Profile Picture
    260 on at

    Verifying your answer.

    Thank you , you saved my day!

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!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,344 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,742 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,231

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans