Skip to main content

Notifications

Announcements

No record found.

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?
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    about subscribe a DataEvent
    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.
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 11,704 Super User 2024 Season 2 on at
    about subscribe a DataEvent
    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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,885 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans