Skip to main content

Notifications

Dynamics 365 general forum
Suggested answer

Logic to Capture Work Hours of a Resource in Dynamics 365

Posted on by 5

Hi All,

I'm working on creating a report based on dynamics to identify the resources who are available for booking? I have a requirement to exclude the non-working employees from the report. Does anyone know what are the entities/logic used to capture the work hours of a resource from dynamics?

Thanks in Advance

  • Suggested answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: Logic to Capture Work Hours of a Resource in Dynamics 365

    Hi,

    As far as I know, these are based on the scheduling rules, that is the reason we have a SDK Request for it.

    I guess, it won't work in a report.

  • PBI User Profile Picture
    PBI User 5 on at
    RE: Logic to Capture Work Hours of a Resource in Dynamics 365

    Hi Wahaj,

    Thanks for responding. I'm building my report in power BI. I tried bringing calendar and calendarrule tables following the instruction in the below link.

    www.cloudfronts.com/.../

    But couldn't find any information to show the employee status as unavailable on the days they are "non-working" in the work hours. Do you think it is possible to get this information from dynamics for reporting?

    pastedimage1617801368080v1.png

    Thanks in Advance,

  • Suggested answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: Logic to Capture Work Hours of a Resource in Dynamics 365

    Hi,

    Thank you for your query.

    As far as I know, getting available resources runs dynamically based on the rules. In short, it is not defined data, it kind if calculates the available resources based on several rules and configuration.

    There is a SDK message available for this purpose:

    https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.queryschedulerequest?view=dynamics-general-ce-9

    Here is a similar thread:

    https://community.dynamics.com/365/fieldservice/f/dynamics-365-for-field-service-forum/394536/how-to-query-today-work-hours-of-a-bookable-resources

    https://community.dynamics.com/365/projectserviceautomation/f/dynamics-365-for-project-service-automation/265409/in-which-entity-are-workhours-for-bookable-resource

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans