Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Workflow is not triggering in D365 f&o.

(3) ShareShare
ReportReport
Posted on by
Hi, 
I've set up a custom workflow for my custom form, which includes a status field. In the table's CanSubmitToWorkflow method, I've added a condition to trigger the workflow when the status is 'Draft'. Despite activating the workflow in the environment and creating a new record with the status set to 'Draft', the workflow still isn't triggering. Am I overlooking something
Categories:
  • Layan Jwei Profile Picture
    Layan Jwei Super User 2024 Season 2 on at
    Workflow is not triggering in D365 f&o.
    Hi RSX,
     
    Please do full sync as well..after u added the status field
  • RSX Profile Picture
    RSX on at
    Workflow is not triggering in D365 f&o.
    Hi,

    Yes, I've done full build on model and not just the project.

    When I debug the other working workflow's canSubmitToWorkflow method it is debugging correctly.

    Yes, both the form patterns are same and properties are set correctly on the design for the workflows. 
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... Super User 2024 Season 2 on at
    Workflow is not triggering in D365 f&o.
    Hi RSX,
     
    When you mentioned you performed a full build, I do assume you build the model and not the solution or project. correct?
    Have you checked any possible differences on the form, e.g. is the form pattern the same for both?
  • Layan Jwei Profile Picture
    Layan Jwei Super User 2024 Season 2 on at
    Workflow is not triggering in D365 f&o.
    Can you debug the submit method for the workflow that is already working?


    I would also suggest to build ur model 
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad Super User 2024 Season 2 on at
    Workflow is not triggering in D365 f&o.
    Hi RSX,
     
    Do full build for your model.


     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

  • RSX Profile Picture
    RSX on at
    Workflow is not triggering in D365 f&o.
     Hi 
    The batch service is on, I tried debugging with both Batch.exe and iisexpress.exe together. Still the debugger is not getting hit on canSubmitToWorkflow method.
  • Layan Jwei Profile Picture
    Layan Jwei Super User 2024 Season 2 on at
    Workflow is not triggering in D365 f&o.
    Hi RSX,

    if your batch service is on, then when u click attach to process, make sure you select these two together
    Batch.exe and iisexpress.exe
  • Waed Ayyad Profile Picture
    Waed Ayyad Super User 2024 Season 2 on at
    Workflow is not triggering in D365 f&o.
    Hi,
     
    Try to debug using batch process, follow the steps on this link: Debug-workflows-in-dynamics-365-for-finance-and-operations/
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

  • RSX Profile Picture
    RSX on at
    Workflow is not triggering in D365 f&o.
    Yes, I tried debugging the canSubmitToWorkflow method, but debugger is not getting hit in that method. 
  • Layan Jwei Profile Picture
    Layan Jwei Super User 2024 Season 2 on at
    Workflow is not triggering in D365 f&o.
    Did you debug the canSubmitToWorkflow method and made sure it really returns true?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa

Leaderboard

Product updates

Dynamics 365 release plans