Hi,
I´m trying to schedule a resource for a work order (automatically) when a new resource requirement is created in my CRM organization. For this, I read about the ‘Search resource availability API’ and the most information that I found it was in these blogs:
Search Resource Availability with Universal Resource Scheduling API - Microsoft Dynamics 365 Blog
I noticed that normally the people design a web resource through which they send the request for use this API, but I am not have experience working with this kind of solutions, so I prefer to use Power Automate to call the API through the unbound action: msdyn_SearchResourceAvailability.
I decided to start with a small number of parameters to verify this functionality, but no matter what parameters I test, the answer never shows me any available timeslot or resource. These are an example:
the flow's outputs give me resources and time slots empty as following:
but when I try to book a resource requirement in Field Service using the schedule assistant with the same duration and dates it show me the resources list.
What do you think i doing wrong? thanks
NOTE: When I try to put the "@odata.type" in power automate json, it give me a error. So I create a variable to solve this problem as saw in this site: Solved: Why does Compose Action give me an error? - Power Platform Community (microsoft.com)