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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Scheduled workflow date condition

(0) ShareShare
ReportReport
Posted on by

Hi experts, 

I have created a workflow using Workflow Elements (available on AppSource) to trigger a workflow every Thursday.

I have a date field called XPT Ship Date.

This workflow should check if the project template is "NOS" and if the XPT Ship Date is in 2 weeks or less. 

I think my logic for the if condition for "XPT Ship Date within 2 weeks" may be incorrect.

Please help me out with the correct if condition of I'm wrong.

Screen-Shot-2018_2D00_03_2D00_15-at-11.20.09-AM.png

Screen-Shot-2018_2D00_03_2D00_15-at-11.22.41-AM.png

Thanks,

Jon

*This post is locked for comments

I have the same question (0)
  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    Regarding the timeout until 1 day condition, why you need that? Tomorrow will never be Thursday again, you call the same workflow for nothing. I think directly stop the workflow is better.

  • Community Member Profile Picture
    on at

    Hi Wei Jei,

    Thanks for the feedback. How can I correct the if condition to send an email "if XPT Ship Date is in 2 weeks or less"?

    Thanks,

    Jon

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi ,

    I think i misunderstand your requirements, you want to trigger this workflow again for next thursday.

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi Jon,

    the XP Ship Date is in 2 weeks or less, compare to what time? current date or?

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Jon,

    If I am not wrong, there are operators to check if the date is within last 'X' weeks. Something similar to this-

    weeks.png

    Hope this helps.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Sorry I think it would be Next 'X' weeks... Do a test to see if this works.

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    if i am not mistaken, the workflow doesnt have this operator

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    You are right Alex, its not aviable in wokflow.

    Jon, you can then use it something like this-

    Actual Close Date "Is Greater Than Or Equal To'  14 Days  before the process execution time.

    I haven't tried it but believes this should work.

    Hope this helps.

  • Community Member Profile Picture
    on at

    Hi all,

    I'll give "Actual Close Date "Is Greater Than Or Equal To'  14 Days  before the process execution time" a try and see if it works.

    Thanks,

    Jon

  • Community Member Profile Picture
    on at

    Hi Ravi,

    I tried using the condition above but it didn't work. Any other way I could make it work?

    Thanks,

    Jon

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans