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

trigger OData URL using x++ code

(0) ShareShare
ReportReport
Posted on by

Hi experts

Good morning !

We have some setup operation needs to perform on OData trigger based on filter. 

Can we trigger OData URL using x++ code?

Please suggest.

Example:

Base_URL/.../XXX_SalesOrderHeaders$filter=SalesId%20eq%20%27SO-01017721%27

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,018 Super User 2025 Season 2 on at

    Hi Priya,

    Can you explain functionally with an example what would be the full process? What do you want to achieve? Do you want to read or update data via OData?

  • Community Member Profile Picture
    on at

    Thank you André.

    We are sharing data to third party application using business event & OData.

    OData used for reading the data by 3rd party application and maintaining log in D365 (Insert operation written to maintain successful read of OData)

    In the failure case, we want to process the data by some other way but wanted to maintain log by running the same Odata URL using x++ code.

  • André Arnaud de Calavon Profile Picture
    301,018 Super User 2025 Season 2 on at

    Hi Priya,

    Can you explain with more details the last part of your reply? What exact failures, some other way are you referring to? It is hard to get on the same page without a clear example.

  • Suggested answer
    WillWU Profile Picture
    22,361 on at

    Hi Priya,

    Did you consider using Power Automate?

    You could create a trigger for business event to transfer data simply by Power Automate:

    community.dynamics.com/.../consuming-business-events-with-power-automate

  • Martin Dráb Profile Picture
    237,874 Most Valuable Professional on at

    .NET comes with several classes for making HTTP requests, such as HttpClient and HttpWebRequest. You can use these keywords to find more details on the internet.

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi Priya_D365,

    you wrote that "Insert operation written to maintain successful read of OData".

    Where exactly is this code and how does it look like? Is it really triggered only if you call the OData endpoint? Or could you trigger it by simply reading the entity via x++ code?

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans