Notifications
Announcements
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
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?
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.
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.
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
.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.
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.
We are honored to recognize Mansi Soni as our August 2025 Community…
A new season of Super Users has arrived, and we are so grateful for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.