Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Extending Dynamics 365 Finance and Operations Apps with Power Platform

You're reading from   Extending Dynamics 365 Finance and Operations Apps with Power Platform Integrate Power Platform solutions to maximize the efficiency of your Finance & Operations projects

Arrow left icon
Product type Paperback
Published in Jan 2024
Publisher Packt
ISBN-13 9781801811590
Length 274 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Adrià Ariste Santacreu Adrià Ariste Santacreu
Author Profile Icon Adrià Ariste Santacreu
Adrià Ariste Santacreu
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Dynamics 365 Finance and Operations and Power Platform FREE CHAPTER
2. Chapter 1: Dynamics 365 F&O and Low-Code Development 3. Chapter 2: Dual-Write and Virtual Tables 4. Part 2: Extending Dynamics 365 F&O with Power Platform
5. Chapter 3: Power Automate Flows in Dynamics 365 6. Chapter 4: Replacing F&O Processes with Power Automate 7. Chapter 5: Building Automations and Integrations 8. Chapter 6: Power Apps: What’s in it for Finance and Operations Consultants? 9. Chapter 7: Extending F&O Apps with Power Apps 10. Chapter 8: Power BI Reporting for Dynamics 365 F&O Apps 11. Part 3: Adding AI to Your Flows and Apps
12. Chapter 9: Integrating AI Builder 13. Part 4: Dataverse and Power Platform ALM
14. Chapter 10: Environment Management 15. Chapter 11: Solution Management 16. Index 17. Other Books You May Enjoy

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:

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image