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...
Answered

Unable to find Search Resource Availability API in CRM

(0) ShareShare
ReportReport
Posted on by 15

I am trying to get the time slots of the required resources and unable to get because why I enquired in about msdyn_SearchResourceAvailability in my CRM instance it wasn't available even after updating. I am following these links:-

https://cloudblogs.microsoft.com/dynamics365/it/2019/07/15/how-to-use-resource-schedulings-search-resource-availability-api/

https://cloudblogs.microsoft.com/dynamics365/it/2019/05/21/retrieve-resource-availability-with-universal-resource-scheduling-api/

I have the same question (0)
  • Verified answer
    Pankaj Gogoi Profile Picture
    3,177 on at

    Hi Bhagat,

    You can download the oData Metadata under Developer Resources. msdyn_SearchResourceAvailability is an Action.

        
        
        
        
        
    

    Please refer the article to call actions.

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/use-web-api-actions

    https://carldesouza.com/calling-a-dynamics-365-action-from-javascript-using-xrm-webapi-online-execute/

    https://community.dynamics.com/365/b/dynamics365enterprisecloudfronts/posts/calling-unbound-actions-using-xrm-webapi-in-d365-v9

    Hope this helps

    Best Regards

    PG

  • Bhagat Ashutosh Profile Picture
    15 on at

    Hi Pankaj,

    Thanks for coming to rescue.

    Warm Regards,

    Bhagat Ashutosh Yadav.

  • Bhagat Ashutosh Profile Picture
    15 on at

    Hi Pankaj,

    Any idea what the action is expecting to be passed as Variable, Requirement, Settings and Resource Specification.

    Warm Regards,

    Bhagat Ashutosh Yadav.

  • Verified answer
    Pankaj Gogoi Profile Picture
    3,177 on at

    Hi Bhagat,

    Here is sample code for reference.

    OrganizationRequest req = new OrganizationRequest("msdyn_SearchResourceAvailability");
    req["Version"] = "1";
    req["Requirement"] = new Entity("msdyn_resourcerequirement", new Guid("1181fb75-c732-ea11-a813-000d3ab29c25"));
    var SettingsEntity = new Entity("organization");
    SettingsEntity["ConsiderSlotsWithProposedBookings"] = true;
    SettingsEntity["ConsiderSlotsWithProposedBookings"] = true;
    req["Settings"] = SettingsEntity;
    var response = service.Execute(req);

    Best Regards

    PG

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
FSRon Profile Picture

FSRon 72

#2
James White Profile Picture

James White 23

#3
11manish Profile Picture

11manish 22

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans