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

Resource Requirement Id is not considered when running msdyn_searchresourceavailability

(0) ShareShare
ReportReport
Posted on by 30

What is the correct way of specifying an existing ResourceRequirement in msdyn_SearchResourceAvailabilityRequest?

With the following:

var req = new Xrm.Entities.msdyn_SearchResourceAvailabilityRequest()
{
RequestName = "msdyn_searchresourceavailability"
};

// Resource Requirement
Entity newReqObject = new Entity("msdyn_resourcerequirement");

var startTime = DateTime.UtcNow.Date.AddDays(1);
newReqObject["id"] = Guid.Parse("ebf79b73-d06c-ec11-8943-000d3a314d4a");
newReqObject.Id = Guid.Parse("ebf79b73-d06c-ec11-8943-000d3a314d4a");
newReqObject["msdyn_resourcerequirementid"] = Guid.Parse("ebf79b73-d06c-ec11-8943-000d3a314d4a");

....

I never get the matching ResourceRequirement in the Outputs.

pastedimage1641921561089v1.png

  • FeifeiQiu Profile Picture
    Microsoft Employee on at

    Please refer to this doc docs.microsoft.com/.../search-resource-availability-api for how to use Searchresourceavailability API

  • HectorMeneses Profile Picture
    30 on at

    Hi FeiFeiQuiu!

    That API does not have good examples on how to use it and it basically does not work correctly with bookable resource categories. It was a time waster for me. Maybe the docs should be updated together with the API.

    When I found and start using msdyn_SearchResourceAvailabilityForRequirementGroup and msdyn_CreateRequirementGroupBooking I was able to see correct results coming back from the APIs.

    These two APIs require creating requirement groups which makes them more complex to use but at least they work correctly.

  • Suggested answer
    Gabriel Dias Junckes Profile Picture
    2,428 on at

    Hi Hector.

    The API msdyn_searchresourceavailability does not use the ID to filter the resource. You will have to set all the values manually on the API parameters. E.g. Start and End date, Territory, Org Unit. etc.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 60 Most Valuable Professional

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
Hamza H Profile Picture

Hamza H 8 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans