New Workflow Event

JlT
Member Posts: 18
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?
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?
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions