Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Process Sessions Of Workflow

Posted on by 382

Hi All,

i have a workflow triggering  on change of date time field . the workflow waits for reach of date ,then further process is done.

lets say for the first trigger process session is created and waiting for reach of date .and if before date is arrived if the user again changes date ,workflow is again triggered and another process session is created .

now i have two process sessions waiting .

i want only one to be waiting at once .how can i manage this .

Thanks,

Mohammed Waseem. 

*This post is locked for comments

  • Manasa Manu Profile Picture
    Manasa Manu 45 on at
    RE: Process Sessions Of Workflow

    Could you please elaborate this answer

  • Manasa Manu Profile Picture
    Manasa Manu 45 on at
    RE: Process Sessions Of Workflow

    Hi 

    Could you please elaborate the answer for this question?

  • Verified answer
    Aditya_Patil Profile Picture
    Aditya_Patil 346 on at
    RE: Process Sessions Of Workflow

    Hi Waseem,

    Try this if it works for you:

    1. Trigger your workflow on Change of date field.

    2. And save this new change date value in another date field (may be you can keep it hidden)

    3. Add parallel wait condition based on Hidden date not equals your date field value and Close this workflow with Status Cancelled(as another instance of the workflow will now be running)

    This will ensure only 1 instance of the workflow is running per record.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Process Sessions Of Workflow

    Hello,

    As a possible workaround you can develop custom workflow activity that will check and cancel all other instances of  workflow triggered for your record - a33ik.blogspot.com/.../howto-avoid-simultaneous-execution-of-2.html

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