Personalized Community is here!
Quickly customize your community to find the content you seek.
Check out the latest Field Service updates!Learn about the key capabilities and features of Dynamics 365 Field Service and experience some of the new features.
Download overview guide | Watch Field Service video
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
We are using URS API to schedule appointments from portal, one of the property that we can pass to this action is "PreferredResources" which takes entity collection of Bookable Resource Guids, my understanding if these resources are available, then it should bring the list of slots for these resources but it is not working as expected, i get a list of slots for other resources. There is another property called RestrictedResources, to exclude a resource from the list, if i pass a resource, it works fine.
Did you face similar issue?
API - msdyn_searchresourceavailability
Version - 2.0.1
Hi Jeevan, would you mind sharing your code? I don't have a working code sample to test myself.
Are your preferred resources actually available? I think preferred is not a hard constraint, however URS recently added "must choose from", which basically says either these resources or nobody.
Hi Alexander, thanks, below link has reference to it and it doesn't complain when i am passing "PreferredResources" and "RestrictedResources", the RestrictedResources is working as expected.
OrganizationRequest req = new OrganizationRequest("msdyn_searchresourceavailability");
req["Version"] = "2.0.1";
Entity newReqObject = new Entity("msdyn_resourcerequirement");
newReqObject["msdyn_fromdate"] = startTime;
newReqObject["msdyn_todate"] = endTime;
newReqObject["msdyn_remainingduration"] = fulfillmentPreference.GetAttributeValue<int>("msdyn_interval");
newReqObject["msdyn_duration"] = fulfillmentPreference.GetAttributeValue<int>("msdyn_interval");
newReqObject["msdyn_timegroup"] = fulfillmentPreference.ToEntityReference();
Entity settings = new Entity("systemuser");
settings.Attributes["ConsiderSlotsWithLessThanRequiredCapacity"] = false;
req["Settings"] = settings;
req["Requirement"] = newReqObject;
Entity resourceSpecification = new Entity("systemuser");
req["ResourceSpecification"] = resourceSpecification;
Entity constraints = new Entity("systemuser");
resourceSpecification["Constraints"] = constraints;
resourceSpecification["PreferredResources"] = bookableResourcePreferences;
Business Applications communities