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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

about subscribe a DataEvent

(1) ShareShare
ReportReport
Posted on by 9
hello experts,
 
i try to consume dataevent in x++ like the external system, 
 
i've tested two ways , PostHandlerFor with table method insert 
 
    [PostHandlerFor(tableStr(VendTable), tableMethodStr(VendTable, insert))]
    public static void VendTable_Post_insert(XppPrePostArgs args)
    {
        throw Global::error(/error!./);
    }
 
and aslo DataEventHandler with table event,
    [DataEventHandler(tableStr(VendTable), DataEventType::Inserted)]
    public static void VendTable_onInserted(Common sender, DataEventArgs e)
    {
         throw Global::error(/error!./);
    }
 
to simulate  the caller confront some critical logic error;
 
then, test creating a new VendTable Record, the record can't be saved.
 
My question is, is that possible consume the dataevent really like external system, even the logic apps can'be running with error; 
 
 
Here is the update for the question:
 
the external system like flow, if the flow consumed the dataevent, and even the flow with some critical logic error, it will not stop the standard logic running in D365 FO;
 
but, if in X++, subscribe to the event, and write it's own logic with error, the standard logic will be terminated.
 
is  there any way to [fully decouple] the customization from the standard?
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,801 Super User 2026 Season 1 on at
    Hi @aioriachen 
     
    If you need a new trigger event, you can read the documentation how to develop new events: Business events developer documentation - Finance & Operations | Dynamics 365 | Microsoft Docs
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    If you need to consume data form external system via logic app then you need something to send you the data like a business event when some specific action happens.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 518 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 431

#3
Adis Profile Picture

Adis 280 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans