Skip to main content

Notifications

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

Workflow being enabled even Conditions are not met

Posted on by 15
Hello all, I have a quick question about the Workflows -
When we set conditions to some specific workflow, workflow be enabled even these conditions are not met. What is the actual behaviour for this conditions?
Pictures are example.
 
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,195 Super User 2024 Season 2 on at
    Workflow being enabled even Conditions are not met
     
    I tried it and as you said, the workflow gets activated although the activate condition doesn't meet. Maybe it is a bug, but I suggest you to add your condition on canSubmitToWorkflow method, it is a public methos you can extends it by COC. 
     
     
    Regards,
    Waed Ayyad 
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Community member Profile Picture
    Community member 15 on at
    Workflow being enabled even Conditions are not met
    Please let me know if there is any other suggestions..
  • Community member Profile Picture
    Community member 15 on at
    Workflow being enabled even Conditions are not met
    Yes Waed, I am using the active versions.
    When we set some conditions for workflows itself in this table - it gives no effect on the system. For example here I set Quantity should equal to 5 to enable this workflow. But in anyway, workflow being active after I click Save button even we have some different amounts for conditions.
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,195 Super User 2024 Season 2 on at
    Workflow being enabled even Conditions are not met
    Hi 
     
     
    Are you sure you are working on the active version of workflow? you can check it from here :
     
     
     
    Regards,
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Community member Profile Picture
    Community member 15 on at
    Workflow being enabled even Conditions are not met
    Thank you for reply Andre,
    The picture is just for example but the version I was using was active for sure.
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,113 Super User 2024 Season 2 on at
    Workflow being enabled even Conditions are not met
    Hi Ahmet,
     
    Is this workflow version (2.0.0.0) active or is still another version active for this template where there probably was no condition?
  • Community member Profile Picture
    Community member 15 on at
    Workflow being enabled even Conditions are not met
    Thank you for the answer Wead.
    I am trying to do conditions like:
    The workflow be enabled only when Quantity = 5 after we save the record. But in any case the workflow be enabled even these conditions are not met. These steps you mentioned I tried but they are for Approvel process. 

    Regards,
    Ahmet Kocakose
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,195 Super User 2024 Season 2 on at
    Workflow being enabled even Conditions are not met
     
    In workflow approval step usually is used to set the approval hierarchy for example if you want to make workflow to go only for the line manager or for the second line manager, also you can use workflow condition to separate flow on Workflow for example in case the amount > threshold then go to path 1 else go to path 2  
     
     
     
    Regards,
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans