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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Accessing an OData/Rest endpoint from a React app and Node

(0) ShareShare
ReportReport
Posted on by

I'm just trying to create a very simple POC where I call to an FnO odata endpoint as a logged in user (not service to service, no secret involved) endpoint and return something. 

I've followed the https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-react sample. 

Now I'm trying to change the end point from the graph one to this

https://<myenv>.axcloud.dynamics.com/data/CustomersV3?$filter=CustomerAccount eq '1001'
works fine in the browser if I just enter it as a url, but I get CORS issues when trying to call it from the SPA, I suppose I expected that.
My app reg has all the correct permissions for dynamics erp, authentication, etc.  per the sample, I've added it to the FnO env aad applications, I thought this was a little weird since adding and AAD app in FnO forces you to associate it with a user, I want to use the logged in user.
Anyone done this successfully before?
I have the same question (0)

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans