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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans