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

Notifications

Announcements

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 6,120

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
    296,568 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
    6,120 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
    296,568 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,359 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
    235,243 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

News and Announcements

[Smoke test 2510.1]

Quick Links

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans