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

  • Verified answer
    Pankaj Gogoi Profile Picture
    3,177 on at
    RE: Unable to find Search Resource Availability API in CRM

    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

  • Bhagat Ashutosh Profile Picture
    15 on at
    RE: Unable to find Search Resource Availability API in CRM

    Hi Pankaj,

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

    Warm Regards,

    Bhagat Ashutosh Yadav.

  • Bhagat Ashutosh Profile Picture
    15 on at
    RE: Unable to find Search Resource Availability API in CRM

    Hi Pankaj,

    Thanks for coming to rescue.

    Warm Regards,

    Bhagat Ashutosh Yadav.

  • Verified answer
    Pankaj Gogoi Profile Picture
    3,177 on at
    RE: Unable to find Search Resource Availability API in CRM

    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

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... 293,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,880 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans