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 :
Dynamics 365 Community / Forums / Field Service forum / Retrieve Resource Avai...
Field Service forum

Retrieve Resource Availability Action (msdyn_RetrieveResourceAvailability)

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

I'm currently using Dynamics 365 for Universal Resource Scheduling (Field Service / Project Service).
I've noticed that there is an ACTION named 'Retrieve Resource Availability' listed in the Processes area for Dynamics 365. Having looked at the Schedule Board, I believe that this is being used to return availability of resources for Work Orders/Activities for Scheduling on the Schedule Board control.

However, when I try and call this from POSTMAN to test this theory I get an 'Object reference not set to an instance of an object' Error.

Has anyone else tried this successfully/unsuccessfully?

If I remove any of the parameters in the body of my request, I get a more detailed message that the required parameter is missing (e.g. One or more parameters of the operation 'msdyn_RetrieveResourceAvailability' are missing from the request payload. The missing parameters are: RealTimeMode), so I am happy that I am submitting all of the Inputs required.

All help appreciated!

Cheers!

I have the same question (0)
  • Community Member Profile Picture
    on at

    did you find any solution?

  • DG FieldOne Profile Picture
    150 on at

    Try using the Soap endpoint.

    Dan Gittler

    Microsoft URS PM

  • Community Member Profile Picture
    on at

    What do you mean by this? As far as I am aware there are no SOAP options available for URS. The existing SearchRequest method which uses the old service scheduling capabilities

  • Community Member Profile Picture
    on at

    Presuming you are trying to call that action programmatically from outside D365, which endpoint are you trying to hit? Ping me at dgittler@microsoft.com to chat if you are stuck!

  • PragmaticDevs Profile Picture
    239 on at

    Is there any API documentation for URS (SDK and REST based) so that we know what all can we do from outside Dynamics?

    I find it odd when people say they found an action in processes and tried calling it programmatically, there must be API documentation maybe by entity?

  • DG FieldOne Profile Picture
    150 on at

    We were about to release official documentation on leveraging API's from outside the tools, but we then drastically enhanced the functionality in this latest release. Net net, I have an unofficial focument which is the current draft of what will be published publically. Please reach out via e-mail and I can share - dgittler@microsoft.com

  • Verified answer
    Karun Profile Picture
    30 on at

    It will surely work

    CHECK On : prominentsolutions.wordpress.com/.../get-the-resource-availability

    Sample Collection : Please pass bookable resource entity collection.

    // Calling the Action – Get the Resource Availability

    OrganizationRequest reqAction = new OrganizationRequest(“msdyn_retrieveresourceavailability “);

    reqAction[“WorkOrder”] = null;

    reqAction[“RealTimeMode”] = true;

    reqAction[“Duration”] = 15;

    reqAction[“ForceDateRange”] = true;

    reqAction[“IgnoreDuration”] = true;

    reqAction[“IgnoreTravelTime”] = true;

    reqAction[“AllowOverlapping”] = true;

    reqAction[“Radius”] = 1;

    reqAction[“StartTime”] = DateTime.Now;

    reqAction[“EndTime”] = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 20, 0, 0);

    reqAction[“Characteristics”] = null;

    reqAction[“TimeGroup”] = null;

    reqAction[“Territories”] = null;

    reqAction[“ResourceTypes”] = null;

    reqAction[“Resources”] = sampleCollection;

    reqAction[“RestrictedResources”] = null;

    reqAction[“Latitude “] = 1.3;

    reqAction[“Longitude”] = 2.4;

    reqAction[“Categories”] = null;

    reqAction[“OrganizationalUnits”] = null;

    reqAction[“Teams”] = null;

    reqAction[“BusinessUnits”] = null;

    //execute the request

    OrganizationResponse response = _service.Execute(reqAction);

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Field Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans