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

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,618 Super User 2025 Season 2 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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 791 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 333 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans