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

Notifications

Announcements

No record found.

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,397 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,397 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,698 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,226

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,047 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,257 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans