Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Can timeout workflows be stopped during a field change with status succeeded?

Posted on by

HI everybody,

We are facing the following challenge. We want a timeout on a workflow to be stopped and get the status succeeded when a field changes.The workflow gets a timeout for 14 days. This is the time a customer gets the time to take a certain action. The workflow timeout starts in a child workflow and looks at the ends on date on the assignment (in this case this is the name of the entity. Now the timeout will always wait for 14 days, even though the customer has finished the assignment before that time. Is there a way to also stop the workflow timeout and give the workflow the status succeeded? There also is an attribute ' assignment handed in on' with the date that it actually has been handed in. 

Hope I have provided you with enough details. If there are any questions feel free to ask me to clarify certain aspects.

Thanks y'all!!!

  • Verified answer
    Fubar Profile Picture
    Fubar 2,750 on at
    RE: Can timeout workflows be stopped during a field change with status succeeded?

    Create a Parallel wait condition that stops the workflow when a certain condition is met.  (using parallel make sure you include a stop workflow step).  Doing this you end up with a TImeout plus a Wait until at the same time, if the condition of Wait until is satisfied you can stop the workflow so the Timeout doesn't execute when the date arrives.

    There's an example here www.crmsoftwareblog.com/.../

  • erhan.keskin Profile Picture
    erhan.keskin 2,247 on at
    RE: Can timeout workflows be stopped during a field change with status succeeded?

    Hi Robert,

    You can use a workflow scheduler for this. It will have an end date time which would describe the 14 days timeout, and the wf would be run every day to check if that field is changed.

    - The WF doesn't need to have a wait condition in this case, the scheduler will manage it.

    - The WF will be run everyday, so the WF will be stopped when the field is updated before waiting for 14 days

    - Before WF stops, it can be handled what it needs to do, so it can be handled in a child WF what it needs to do (such as sending emails)

    Regards,

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans