web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Specify Fulfillment preferences for Resource Scheduling API

(0) ShareShare
ReportReport
Posted on by 10

Hello.

I'm trying to fetch timeslots with Resource Scheduling API but it always return earliest available time for resources and I want it to be multiple 15 min. slots.

I guess it's beacuse "Fulfillment preference" Field is not specified in Resource Requirement.

https://docs.microsoft.com/en-us/dynamics365/common-scheduler/fulfillment-preferences

I tried to use existing Resource Requirement with Fulfillment preference specified as well as Resource Requirement created on the fly (according to API documentation https://cloudblogs.microsoft.com/dynamics365/it/2019/05/21/retrieve-resource-availability-with-universal-resource-scheduling-api/ )

but still didn't get results.

Could you please tell me what can I do about it?

My c# code is:

OrganizationRequest or = new OrganizationRequest("msdyn_SearchResourceAvailability");
or.Parameters.Add("Version", "1");

var requirement = new Entity("msdyn_resourcerequirement");
requirement.Attributes["msdyn_fromdate"] = DateTime.Now;
requirement.Attributes["msdyn_todate"] = DateTime.Now.AddDays(days);
requirement.Attributes["msdyn_effort"] = (decimal)1;
requirement.Attributes["msdyn_duration"] = 15;
requirement.Attributes["msdyn_timegroup"] = fullfillmentReq.ToEntityReference();

var settings = new Entity();
or.Parameters.Add("Requirement", requirement);
or.Parameters.Add("Settings", settings);

var resp = connection.Execute(or);

Thank you,

Dmitriy

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 57 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 34 Most Valuable Professional

#3
Scott Jackson UK Profile Picture

Scott Jackson UK 22

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans