To send parameters data or call a method from the Logic app to Dynamics 365 F&O using Data Entity, you need to follow the below steps:
Create a data entity in Dynamics 365 F&O, Now create a method as shown below
Method:
public class LSAPIINTAmazonOrderHeaderEntity extends common
{
[SysODataActionAttribute("insertRecordInLSAPIOrderOrderCallResponseEntity", false)]
public static boolean insertRecordInLCRProtestStaging(Str _record, Str _LSSPAPIOrderType)
{
boolean Success = true;
if(_LSSPAPIOrderType == "Header")
{
info(_record);
}
return success;
}
}
Now go to the Logic app and search for Execute action and you will be able to see 2 parameters(Instance and action),
For instance, you need to fill Your Dynamics 365 F&O URL
In Action you need to enter Data entity method you created(Name of DataEntity-Method)
Now you can add the parameters as specified by you in the Data Entity method and pass the values as required
So whenever this logic app runs, it will call this D365 Data entity method and perform the operation you have written on the Data entity method.
Need help? Connect Atul
Latest posts by Atul Yadav (see all)
- Microsoft Dynamics 365 for finance and operations - September 5, 2024
- Override an existing lookup method event handler - September 2, 2024
- Workflow in Microsoft Dynamics 365 FO - August 22, 2024