Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to kick off a workflow so many days before a date?

(0) ShareShare
ReportReport
Posted on by 2,645

I have a field that is a drop down showing a range of months and when the user selects (lets say), Jan 1 - Dec 31, the workflow needs to kick off on Sept 1 each year.  Then the workflow should reset itself to run again the following year the same time.  How can I do this?

months.png

*This post is locked for comments

  • USA80 Profile Picture
    USA80 2,645 on at
    RE: How to kick off a workflow so many days before a date?

    This seems pretty complex

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: How to kick off a workflow so many days before a date?

    Hi ,

    you can refer below article.

    www.dynamict.eu/.../execute-a-dynamics-crm-workflow-from-c

    basically, you create a workflow and a console application that run everyday, if the condition is met, execute the workflow that you created.

    How to build console application

    https://msdn.microsoft.com/sv-se/library/gg695803(v=crm.7).aspx

    How to schedule console applicaiton

    https://www.youtube.com/watch?time_continue=206&v=w2PiUmhQ6-A

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: How to kick off a workflow so many days before a date?

    You can use 2 identical workflows, to execute & set recursive trigger of the child WF based on business need.

    www.powerobjects.com/.../create-recursive-or-scheduled-workflows-in-crm

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: How to kick off a workflow so many days before a date?

    Hi,

    you can take a look below article.

    www.axpulse.com/.../scheduling-recurring-workflows-in-microsoft-dynamics-365-crm-cloud

    but i would not suggest you to do this, because it may cause performance issue.

    I would suggest you to use console application .

    Below is the sample code on how to execute a workflow.

    msdn.microsoft.com/.../gg309600.aspx

    if you have Microsoft flow, you also can do this.

    docs.microsoft.com/.../run-scheduled-tasks

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans