Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Extending Dynamics 365 Finance and Operations Apps with Power Platform

You're reading from  Extending Dynamics 365 Finance and Operations Apps with Power Platform

Product type Book
Published in Jan 2024
Publisher Packt
ISBN-13 9781801811590
Pages 274 pages
Edition 1st Edition
Languages
Author (1):
Adrià Ariste Santacreu Adrià Ariste Santacreu
Profile icon Adrià Ariste Santacreu

Table of Contents (18) Chapters

Preface 1. Part 1: Dynamics 365 Finance and Operations and Power Platform
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

Using the F&O connector to update a record

We can’t update the records straight away. Remember that the JSON file is an array, so we need to loop through the items in the array to process each one. Add an Apply to each control block (see Figure 5.9):

Figure 5.9 – The Apply to each control block

Figure 5.9 – The Apply to each control block

In this control block, we must select the Body element of the parse JSON action. The body contains the JSON array we need to loop through. All the actions we add inside this block will be repeated for each item of the array.

Next, we will process each record – first selecting it and then updating the record if we need to.

Getting the existing record

Remember that to update a record in Power Automate using the F&O connector, we have to select it. This is similar to what we do in X++ – we need to do a select forupdate first, and then update it.

To do that, we will use the Get a record action of the Fin & Ops Apps...

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 $15.99/month. Cancel anytime}