Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / ODATA call from extern...
Finance forum
Answered

ODATA call from external system

Posted on by 517

Hi,

We have external API that makes call to our D365FO using OData.

I am just curious to know how the OData call be made to D365FO from outside without having any entry in System Administration-> Setup -> Azure Active Directory Applications as mentioned in below article.

https://www.d365ug.com/blogs/nandita-nityanandam/2018/11/20/third-party-integration-in-d365fo-using-odata

The issue we found that this Odata call from external API results in error ' Cannot edit a record in Activities (smmActivities).\nAn update conflict occurred due to another user process deleting the record or changing one or more fields in the record.'

This however works fine from Excel file import using DIXF. I wanted to reproduce the error but just not sure how can I make a Odata call without having above mentioned registration.

Appreciate if someone can help if faced such situation before. Thanks.

  • Martin Dráb Profile Picture
    Martin Dráb 225,490 Super User on at
    RE: ODATA call from external system

    Please see the verified answer above.

    If the verified answer doesn't apply to your problem, you seem to have a different problem than Vikky. If so, please create a new thread and explain your particular problem there.

  • Rahul_Rathod Profile Picture
    Rahul_Rathod 15 on at
    RE: ODATA call from external system

    Hi,

    Did you resolve this issue? Please let me know the solution of this because I am facing the same issue but using AAD authentication. 

  • VRD Profile Picture
    VRD 517 on at
    RE: ODATA call from external system

    Thanks Martin for your comments. I wanted to reproduce the scenario hence was just wondering because I haven't tried OData call using native app before.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 225,490 Super User on at
    RE: ODATA call from external system

    You can register the app in AAD as a native app (instead of a web app) and then use username & password instead of a client secret. Then you don't need System Administration-> Setup -> Azure Active Directory Applications to define the user.

    Nevertheless the fact that you have an update conflict inside F&O shouldn't be related to the way of authentication.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans