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)

Workflow to only send emails during working hours

(0) ShareShare
ReportReport
Posted on by 230

We have several workflows set up that send email alerts for new leads, sales, viewings booked etc and they are on 24/7. This means when the recipients of these emails sit down at their desk first thing in the morning they come into a large number of emails. Is there anyway I can change the workflow to only send emails between working hours? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    David Jennaway Profile Picture
    14,065 on at

    I don't think there's a simple way to do this. Just to check what the requirement is, if a an action happens outside of the recipients' work hours, do you not want the email sent, or do you want the email to be delayed until their work hours ? As an observation, in the latter case you wouldn't gain much by delaying the email, as they would just then all get sent at the start of the work hours.

    If you want the emails not to be sent, this could be done by writing a custom workflow activity that would check the recipients' work hours. You could either write this to return a value that you'd then use in a check condition in the workflow, or you could create (but not send) the email in workflow, then pass the a reference to the email to the custom workflow activity, and it could then decide either to send or delete the email

  • Ciaran Reynolds Profile Picture
    230 on at

    Thanks for your response David. We want to avoid spam so the emails would only be sent during the recipients working hours. I was wondering if there were any solutions anyone had developed that could of solved my problem but that doesn't seem to be the case. I'll look into writing a custom workflow. Thanks for your help.

  • Suggested answer
    Ryan Maclean Profile Picture
    3,070 on at

    Hi Ciaran,

    You could use Aiden Kaskela's Workflow Elements to help you with this.  There is an activity in this called "Get Date Components" (https://kaskelasolutions.com/activity-get-date-parts/) that allows you to extract the hours from a datetime field, so you could use this create a condition to check if the Hour is within working hours, and send/hold your email accordingly

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