Good day everyone, this is my first post on the form.
I am totally stuck on a problem here. I have been following the instructions on these two sites:
https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/build-consuming-data-entities#consuming-entities-by-using-odata
https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/odata#setting-navigation-properties-between-odata-entities
I am at the stage of "Adding actions on OData entities".
[SysODataActionAttribute("CalcMaintenanceDuration", true)]
public int CalculateMaintenanceDuration()
{
//do something
return 0;
}
I followed the example of the code above, I entered my own names, I rebuild the solution and then I ran the command "iisreset" in the command prompt. When I run https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/$metadata in postman, I can see the action I created inside the metadata. My problem now is when I try to invoke it I am consistently greeted with a 404 "No route data was found for this request."
I have found a few other sites with vague descriptions of how the endpoint should be arranged but with no success.
Any light on this matter would be greatly appreciated.
Kind Regards,
Corné Smith

Report
All responses (
Answers (