Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Circle next to the work schedule of users instead of the tick mark

Posted on by Microsoft Employee

Hello guys,
I am trying to setup the work schedule in my On Prem CRM User account. I click on Set Up -> Wrok Schedule for One day. After setting up the work hours , I click Ok. When I look at the work hours, I see a circle next to the work hours. If the hours are setup correctly, shouldn't we be looking at a tick mark next to the work hours? The reason why I ask this is, I am trying to query the work hours using "QueryMultipleSchedulesResponse". It is indicating the user is not working in the hours mentioned. What does the circle next to the work hours mean? Why does it appear instead of the tick mark?

Schedule-hours.PNG

*This post is locked for comments

  • grayjustin Profile Picture
    grayjustin on at
    RE: Circle next to the work schedule of users instead of the tick mark

    Thanks for the suggestion, I had the same question. To be honest, I was looking for a new scheduling software and I already found some scheduling templates on https://tracktime24.com/Free-Employee-Schedule-Template. I hope this software will be useful and more efficient. For me, it was important to find something more complex, where I can plan all the activities and I can split the tasks. I have a team of 10 persons and I'm responsible for their tasks, so that's why I'd chosen another scheduling program.

  • Suggested answer
    Michel van den Brink Profile Picture
    Michel van den Brink 4,697 on at
    RE: Circle next to the work schedule of users instead of the tick mark

    Hello Jim,

    The circle icon means that there is a special schedule for that one day, which is different from the regular schedule. The regularly scheduled days will have a tick mark icon.

      

    As to why it isn't showing up in your QueryMultipleSchedulesResponse, you should. I just ran a few tests and with a similar work hours configuration, I get TimeInfos entries for the special scheduled days as well.

    Note that TimeInfos is a multi-dimensional array, perhaps you are looking at the wrong depth?

      

    Here's a sample of code that I used to do my test run just now:

    QueryMultipleSchedulesRequest scheduleRequest = new QueryMultipleSchedulesRequest
    {
        ResourceIds = new Guid[]
        {
            mySystemUser.Id
        },
        Start = DateTime.Now,
        End = DateTime.Today.AddDays(7),
        TimeCodes = new TimeCode[] { TimeCode.Available }
    };
    
    QueryMultipleSchedulesResponse scheduleResponse = (QueryMultipleSchedulesResponse)client.Execute(scheduleRequest);
    
    // Verify if some data is returned for the availability of the users
    if (scheduleResponse.TimeInfos.Length > 0)
    {
        foreach (var timeInfo0 in scheduleResponse.TimeInfos)
        {
            foreach (var timeInfo1 in timeInfo0)
            {
                Console.WriteLine("Slot: " + timeInfo1.Start.Value.ToString("yyyy-MM-dd HH:mm:ss"));
            }
        }           
    }
    Hope this helps you get started. If you have any other questions, please let me know! :-)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans