web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Record should become inactive the following month...

(0) ShareShare
ReportReport
Posted on by

Hello everyone.

I'm trying to create a workflow that should change the status of the record on the 25th of the following month, based on the end date.

For example, I have Project Team Member record that the end date is 11/10/17. I want the workflow to change the status to "Inactive" on 25th of the following month which will be 12/25/17.

How do i go about getting this done?

can it be done with a simple workflow, o will i have to write something up for it?

Thank You!

Leibish Ringel

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ashlega Profile Picture
    34,477 on at
    RE: Record should become inactive the following month...

    Probably nothing out of the box, but you might use this solution to do date-time calculations:

    https://github.com/jlattimer/CRM-DateTime-Workflow-Utilities

    And, then, once you have the date, you'll just need the workflow to wait till that date

  • Suggested answer
    Zibba360 Profile Picture
    on at
    RE: Record should become inactive the following month...

    Hi

    You can write a console app...create organization service on it to connect to CRM. Next, create a scheduled task on Task Schedular that is going to run the console app exe daily. Your console app will get the dates, compare/calculate, then deactivate records that should be.

    Another way of doing it but I don't recommend it is through an OOB workflow, include a wait step (to wait 1 month/3 weeks, etc). The reason I don't recommend this OOB WF step is because, in your case, the WF will wait for a month, and at that time, and as many WF instances there are while they are waiting, it will slow down CRM performance.  

  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at
    RE: Record should become inactive the following month...

    Create a custom workflow and use wait condition to run it on specific date of every month. Or you can use bulk delete job to schedule workflow on a specific date.

  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at
    RE: Record should become inactive the following month...

    You can try below approach. Create a calculated field say new_inacticteDate to add 30 days +end date upon create or update. Then create recurring workflow to make thw record inactive and keep the timeout untill the new_inacticteDate is system date and time.

    Hope this will work.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans