Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Unanswered

msdyn_SearchResourceAvailability

Posted on by
Hello,
 
I am currently referencing the following article: /Search Resource Availability API/ available at the link: https://learn.microsoft.com/en-us/dynamics365/field-service/search-resource-availability-api. I am utilizing this resource to obtain the availability information of the resources within the Field Service.

The parameters I am employing are as follows:
 
 
As an example, I am working with a scenario where I have three resources that fulfill the specified criteria. However, only one of these resources should be available within the selected range of dates.
 
 
 
Upon examining the results, I have noticed that I am receiving six time slots. However, it is crucial to highlight that these time slots are not taking into account the availability of my resources, as they solely reflect their working hours. 
 
Upon reviewing one of the time slots for Alan Steiner (Sample Data), it becomes apparent that the information provided is inconsistent. By referring to the schedule board, it is evident that Alan Steiner is not available during that particular time slots. 
 
 
Any idea what I am doing wrong ? 
 
 
  • Suggested answer
    Mayank Profile Picture
    Mayank 2 on at
    msdyn_SearchResourceAvailability
    Hi @alexy,
     
     
    you need to filter and select only the results were 
    timeSlots[i].Type == 0 && timeSlots[i].Potential == true
     
    Thanks
  • msdyn_SearchResourceAvailability
    Hiya,
     
    Did you end up fixing this? I'm doing the same thing and for me it returns everything.
     
     

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans