Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Data or Business Event...
Finance forum

Data or Business Event for Sales Order Release Status?

Posted on by 2
I need to trigger an event in another of our systems when a Sales Order in D365 F&O changes to Released.
 
I've tried implementing a custom data entity that contains only the SalesId and ReleaseStatus fields from SalesTable. I've also tried using the SalesTableBiEntities collection. Either way, when the Sales Order is released, no data event fires. I've tried connecting it to the Service Bus we usually use and to a webhook for testing purposes, but that change doesn't come through.
 
What do I need to do to get an event fired when a SalesOrder is released? Is there something I can tweak in the data entity to get alerted to changes in that field? Is there a business event I missed that would trigger this?
  • PB-03081625-0 Profile Picture
    PB-03081625-0 2 on at
    Data or Business Event for Sales Order Release Status?
    Thank you kindly Layan Jwei. This sounds very promising and I have passed it onto my lead developer. I was not aware of this feature; the only ones I knew about for integration based on D365 table changes were business events and data events.
  • Suggested answer
    Layan Jwei Profile Picture
    Layan Jwei 6,870 Super User 2024 Season 2 on at
    Data or Business Event for Sales Order Release Status?
    Hi,

    Did you try to see if "alerts" would meet your business need?


    Regarding business events, you need to write x++ code, no need for data entity (if you already did that, then please show us ur code)
    this can achieve what you are looking for, as you need to call the business event by code when the status changes to released (you need to find the correct method)
    I would advice to go through those links:
    https://dynamics365musings.com/how-to-setup-d365-business-events-part-1/
    https://dynamics365musings.com/how-to-setup-d365-business-event-part-2/
    https://dynamics365musings.com/how-to-setup-a-custom-d365-business-event/


    Now for data events, those get triggered on CRUD operations and you need a data entity. However, I'm not sure if you can really only make it work for 1 field change. But maybe if your entity only contain the field status with range on this released status, then maybe it will work. You will need to test that.
    Anyways, in general, if you have issues and seeing the data event being triggered, then please share screenshots of what you did.
    First you need to add the endpoint (service bus or anything), then you need to look for this entity in the data event catalog and activate it

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,142 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,979 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans