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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

time off calendar is set do not assign case to agent

(0) ShareShare
ReportReport
Posted on by 40

I need a workflow when a user set a time off calendar, it should not assign the case to him. Any idea how to achieve that?

Elie

I have the same question (0)
  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    Did you set work hours for user?

    If so, we could only get the work hours of user through code.

    Please refer to this doc.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/sample-query-working-hours-user

    From the above doc we could get that using "QueryScheduleRequest " could help us get the user workhours, and then create a custom workflow to check when a case is assigned to this user, is he in work hours.

    Regards,

    Leo

  • ElieAJ Profile Picture
    40 on at

    Thanks Leo, I want to keep it simple and not through coding.

    The idea is when a user set Time off (within his user), i need to update the field Available (under user)

    That would work fine for me. However i'm not locating the correct entity to run the workflow based on it

    Regards

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    Thanks for your explanation :-)

    Which kind of the workflow do you want to trigger?

    1.If you want to update the field under user after set time off.

    Unfortunately we could not trigger workflow automatically after setting up time off in D365 so you should to update the filed manually.

    2.If you don't want the case to be assigned to user who is time off,  and since you have a field under user to reflect the status of user(time off or working), you just need to create this workflow on case entity and trigger it when a record is assigned.

    If my understanding is not correct, please feel free to let me know.

    Regards,

    Leo

  • Terrance Morgan Profile Picture
    515 on at

    You need to assign work hours to the user. That way they would not be assigned cases once their work hours are complete.

  • ElieAJ Profile Picture
    40 on at

    Please can you elaborate more? do i need to customize anything else than setting work hours? how do you configure work hours?

    If an agent is going to vacation, how he/she can define this and where?

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi EliAJ,

    I tried to set a workhour for a user and assign a case to him during his off hours and the case could still be assigned to him which means there is no OOB way to archive your requirement.

    If you don't want to use code to do this, please raise a ticket or Idea to Microsoft for more professional help.

    Regards,

    Leo

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 19 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans