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, ...
Suggested Answer

Test OData API/Web Services by using POSTMAN

(0) ShareShare
ReportReport
Posted on by 5

Hi,

Like this video https://www.youtube.com/watch?v=Eri9PfxrCDQ  or other examples parameters,
pastedimage1659110553409v2.png


I have this error  message : {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"}

Azure parameters. (I am administrator)

pastedimage1659111267944v10.png

pastedimage1659111100338v9.png

pastedimage1659110704902v3.png

pastedimage1659110750513v4.png

Permissions.

pastedimage1659110782655v5.png

configuration D365 AAD with the same client_id 
pastedimage1659110886707v7.png


Test with postman.
pastedimage1659110833143v6.png

the get data from aData

pastedimage1659110952085v8.png


I think there is a missing authorization in the Azure settings.
How to isolate the origin of the error, postam or Azure side.
regards.

I have the same question (0)
  • nunomaia Profile Picture
    25 Moderator on at

    Try to setup postman requests with generated OAuth token  

    pastedimage1659132387446v1.png

  • BCAST Profile Picture
    5 on at

    Hi,
    The same error..
    pastedimage1659170605506v1.png


    I have no problem generating token.

    Parameters are good.

    pastedimage1659170862452v2.png

    Setting for the get..
    pastedimage1659170961958v3.png

    For me the problem is in Azure parameter Appliction

    For my application parameter in azure, have you add parameters ?

    pastedimage1659171196198v4.png

  • ergun sahin Profile Picture
    8,826 Moderator on at

    Check Admin's mail adress and look for event viewer for logs

  • Suggested answer
    id365font Profile Picture
    398 on at

    Hello,

    here you have a github example doing the same request but pointing to d365fo service. You just need to change the url and configure it to point to odata service. And remember to fill the tenant and application variables.

    github.com/.../MES

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 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans