web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Workflow next step id

(2) ShareShare
ReportReport
Posted on by 179

I have created a custom workflow for a custom page in Business Central to run an approval process.

I also created custom events and responses and configured them within the workflow.

However, when I execute it, the workflow instance gets deleted after the first go.

Upon further investigation, I found that in the Workflow Step table, the “Next Workflow Step ID” field remains 0. Because of this, the system assumes there are no further steps, considers the workflow complete, and deletes the workflow instance.

My question is: how can I properly assign or configure the “Next Workflow Step ID” field so that the workflow continues to the next step instead of ending after the first one?

 
I have the same question (0)
  • Yash_Mistry Profile Picture
    512 on at

    Hello,

    I encountered the same issue with custom workflows in Microsoft Dynamics 365 Business Central. To resolve it, I created workflow templates and then generated workflows based on those templates, which worked correctly.

    I would recommend reviewing your workflow events configuration carefully, as the issue may be related to how the events are defined or linked. If needed, feel free to share your setup, and I can help you review it.

    Thank you.

  • Gerardo Rentería García Profile Picture
    27,087 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Next workflow step id is empty

    Best Regards
    Gerardo

  • Suggested answer
    YUN ZHU Profile Picture
    101,995 Super User 2026 Season 1 on at
  • Suggested answer
    OussamaSabbouh Profile Picture
    17,586 Super User 2026 Season 1 on at
    Hello,
    You usually don’t set Next Workflow Step ID manually. In Business Central, that value is effectively determined by how the workflow lines are built on the Workflow page, especially the indentation/hierarchy between steps. If your first custom event runs and the next step is not configured as a proper child/next workflow line, BC sees no continuation, leaves Next Workflow Step ID = 0, and ends/deletes the workflow instance. So the fix is to make sure your workflow has a valid entry point, then add the following steps and indent them correctly under the previous step, with valid event/response combinations and conditions; also recheck this if you changed any primary event/response in a template, because that can break the next-step references.

    Regards,
    Oussama Sabbouh

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,222 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,603 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,186 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans