Skip to main content

Notifications

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.

  • Suggested answer
    Wasiu Ibrahim Profile Picture
    15 on at
    RE: Workflow Event/Response Combinations - Delete

    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.

  • Wasiu Ibrahim Profile Picture
    15 on at
    RE: Workflow Event/Response Combinations - Delete

    Hi Romryan, 

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

  • Romryan Profile Picture
    on at
    RE: Workflow Event/Response Combinations - Delete

    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.

  • Verified answer
    Wira Profile Picture
    122 on at
    RE: Workflow Event/Response Combinations - Delete

    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
    RE: Workflow Event/Response Combinations - Delete

    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.

  • Suggested answer
    Vanessa Garcia Profile Picture
    on at
    RE: Workflow Event/Response Combinations - Delete

    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,

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,169

#2
YUN ZHU Profile Picture

YUN ZHU 1,006 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 830

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans