Running OData actions from a Power App
We’ve seen how to display and update data from F&O into a Power App, but what can we do if we want to trigger some process on the F&O side from the Power App? Well, thankfully, we have OData actions in F&O data entities! And we can call them from a Power App thanks to Power Automate!
Imagine a scenario where we have a Power App for a salesperson, and this app shows a list of sales orders. The salesperson wants to be able to post a sales order invoice from the app. We just need to create an OData action in the Sales Orders entity that does this. Let’s learn how!
Extending data entities
Unfortunately, it’s not possible to create code extensions for data entities. This forces us to duplicate data entities if we want to change code or add methods.
To do this, we will need to do some X++ development work in Visual Studio. Duplicate the standard SalesOrderHeadersV2
entity and add a new method, like this: