Options

New Workflow Event

JlTJlT Member Posts: 18
edited 2021-04-14 in NAV Three Tier
Hi!

I'm trying to creata a new workflow event (In BC 17.5.22499.22680) using the guide at https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-walkthrough-workflow-events-responses but I'm having some problems.
In the guide the this procedure doesn't return any data when called.
{
procedure MyWorkflowEventCode(): code[128];
begin
end;
}

When used I get an error saying that the function name is missing in workflow step when the function WorkflowEventHandling.AddEventToLibrary is called with the procedura as a parameter.

If I modify the procedure to look like other examples I have found on the internet like this

{
procedure MyWorkflowEventCode(): code[128];
begin
exit(UpperCase(MyWorkflowEventCode));
end;
}

I get an error saying "Excessive recursion has been detected in event subscriber function AddMyWorkflowEventsToLibrary for event None that is raised in CodeUnit 1520."

So, please, any input to get me through this?
Sign In or Register to comment.