web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    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,

  • 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.

  • Verified answer
    Wira Profile Picture
    124 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

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

    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
    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,106

#2
YUN ZHU Profile Picture

YUN ZHU 1,752 Super User 2025 Season 2

#3
OussamaSabbouh Profile Picture

OussamaSabbouh 1,670

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans