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.
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.
Hi Romryan,
I'm currently facing this challenge, Let me know when you get the solution, Thanks
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.
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
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.
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:
I hope it helps,
Sohail Ahmed
1,169
YUN ZHU
1,006
Super User 2025 Season 1
Mansi Soni
830