Hello,
I am using Postman to try and insert Header and Lines in data entities in D365.
Is it even possible to set a class as a parameter in the action method that I am calling? If not, what would be the right approach for this?
I try to use a contract class and initialize the header and lines there but I get the following error when I Send the Post action via Postman:
"No HTTP resource was found that matches the request URI '<myurl>/data/
/"My custom entity header"/Microsoft.Dynamics.DataEntities."action method"'. No route data was found for this request."
[SysODataActionAttribute('actionMethod', false)]
public static void actionMethod(ContractClass _contractClass)
{
ContractClass contractClass= _contractClass;
ClassCreate classCreate = new ClassCreate ();
classCreate.createHeaderLines(contractClass);
}
Thanks in advance.