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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Workflow Event/Response Combinations - Delete

(0) ShareShare
ReportReport
Posted on by

Hi All,

Is it possible to delete an event from preceding event. I am customizing a new workflow and I am trying to change the event in the preceding event from my AL solution but nothing is reflecting. If I uninstall and unpublish the extension, that event is still available in the preceding event list. How else can it be removed so that I can rebuild and publish my solution again.

I have the same question (0)
  • Suggested answer
    Vanessa Garcia Profile Picture
    Microsoft Employee on at

    Hi Romryan,

    I think this is handled by code.

    In C/AL there were 2 Codeunits created:

    1520 - Workflow Event Handling / 1521 Workflow Response Handling

    In those, we add the events to the library (CreateEventsLibrary/CreateResponsesLibrary) and set the Predecessors (AddEventPredecessors/AddResponsePredecessors).

    I think in addition to your extension, you need to somehow add your predecessors preferences in there as well.

    Then you may want to take a look into the Workflow Event Hierarchies, where you can define for each EVENT, what you want to allow as Response or not:

    pastedimage1604053654311v1.png

    I hope it helps,

  • Romryan Profile Picture
    on at

    Venessa,

    I have done so the problem is that when I change one of my custom event nothing changes even after rebuilding and publishing.

    i.e. an event "Approval Request for Requisition is approved" is not changing if I edit and change the any word. i.e. aprroved to Approved.

  • Verified answer
    Wira Profile Picture
    124 on at

    Hi Romryan

    As far as I know, you need to delete that event manually by creating page list editable for Table 1520 - Workflow Event or creating function to delete that record.

    Regards,

    Wira

  • Romryan Profile Picture
    on at

    Wira,

    Thank you very much for reply. What about recreating the event?. I deleted the event workflow event table from SQL but rebuilding and republishing didn't recreate the even/related new event.

  • Wasiu Ibrahim Profile Picture
    15 on at

    Hi Romryan, 

    I'm currently facing this challenge, Let me know when you get the solution, Thanks

  • Suggested answer
    Wasiu Ibrahim Profile Picture
    15 on at

    In the CU - 1520 Workflow Event Handling run this code below

    codeunit 52121429 "Workflow Event Handling Ext"

    {

       trigger OnRun()

       begin

           //Ibrahim Wasiu: To write into Table, Workflow Event Handling

           CreateEventsLibrary();

       end;

    Best of luck.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 580 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 462 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 272 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans