Hi Experts,
Do I need to change the structure of the below code in D365 for the custom service. The below code is what I used in AX 2012 and exposed as a service. Can I use the same for D365?
I have to call this method (insertPOStaging) from client application using JSON. So do I need to deserialize in this method?
There are two List objects as parameters in the method insertPOStaging and I am not really sure whether its a proper way to deserialize. Kindly guide.
Class PurchaseOrderService
{
[AifCollectionTypeAttribute('_poHeaderObj', Types::Class,classStr(PurchaseOrderHeaderContract)),
AifCollectionTypeAttribute('_poLineObj', Types::Class,classStr(PurchaseOrderLineContract)),
SysEntryPointAttribute(true)]
public void insertPOStaging(List _poHeaderObj, List _poLineObj)
{
//rest of the code to insert into staging tables.
}
}
Thanks,
N.Sridhar