Skip to main content

Notifications

Announcements

No record found.

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

Workflow is not triggering in D365 f&o.

(2) ShareShare
ReportReport
Posted on by 110
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:
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,820 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 7,278 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 6,636 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 110 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 7,278 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 6,636 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 110 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 7,278 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?
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,636 Super User 2024 Season 2 on at
    Workflow is not triggering in D365 f&o.
    Hi RSX,
     
    Did you try to reset usage data? Are you sure you are using the correct query on your form? (The query that you used on workflow document query?)

     
     

    Thanks,

    Waed Ayyad

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


  • RSX Profile Picture
    RSX 110 on at
    Workflow is not triggering in D365 f&o.
    Hi Layan,

    In this custom module, we do not have option of active change management in parameters. 
    Yes workflow is enabled in the form.
    Yes, the other workflow is in the same module. 
    Tried full build with synch, still same issue.

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... 291,820 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,514 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans