Requirement –
- Developing & adding actions on OData entities of Microsoft Dynamics 365 finance and operations
- Consuming and calling Data entity action in Microsoft Flow or Logic Apps Or Microsoft Power Automate
Development-
- Create or develop a custom data entity. Read More:

- Add a new method in your custom data entity by using Attribute -SysODataActionAttribute & SysODataCollectionAttribute
[SysODataActionAttribute("demoExecuteActionListParm", true),
SysODataCollectionAttribute("InventSiteIdList", Types::String),
SysODataCollectionAttribute("return", Types::String)]
public str demoExecuteActionListParm(List InventSiteIdList)
{
str siteCommaSeperated;
List list = new List(Types::String);
ListEnumerator ListEnumerator;
ListEnumerator = InventSiteIdList.getEnumerator();
while (ListEnumerator.moveNext())
{
siteCommaSeperated += strFmt('%1, ', ListEnumerator.current()) ;
}
return '200 OK:Testing Of Odata Entity ExecuteAction has been completed!! Values = ' + siteCommaSeperated;
}

- Build and synchronize your project


- Test your flow and get response successfully.
