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)

Workflow to trigger if work done outside of normal business hours

(0) ShareShare
ReportReport
Posted on by

I went to create a WF to trigger if a Service Activity contained work done outside of normal business hours today, but when i went to create it, I realized there is no (OOB) functionality to test for the Start Time of a Service Activity against a time of day.  It can only test against specific date/times.

Has anyone else run into this and have you found a solution?

Thank you.

*This post is locked for comments

I have the same question (0)
  • Daniel at VNS Profile Picture
    on at
    RE: Workflow to trigger if work done outside of normal business hours

    Thank you Alagu.  Ugh - this is what i was afraid of.  If JS and WF can't do it, a Plugin is only option left, and that's beyond my (current) abilities, so I'll have to put this one on the shelf for now - but thank you for the info.

    I'm wondering if a 3rd party utility might be able to handle this for me, since I'm not a coder.  North52 or something like that maybe?

  • Verified answer
    Alagunellaikumar Profile Picture
    6,212 on at
    RE: Workflow to trigger if work done outside of normal business hours

    Hi

    You have to write a plugin for service activity.

    Message Name:Update

    Primary Entity: your activity

    Operation: Pre-operation

    Logic:

    Check your task status is complete or not

    Retrieve working hours of current user (msdn.microsoft.com/.../gg327841.aspx)

    Check the task status modified time is out side of business hours

    Do your logic

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