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

Parsing a JSON file

To start, we need to convert the base64 string into a human-readable version. Thankfully, Power Platform offers some built-in functions that allow us to decode and encode base64.

Add a new Compose block and change to the Expression tab (see Figure 5.5):

Figure 5.5 – Power Automate expression editor

Figure 5.5 – Power Automate expression editor

First, add the decodeBase64 function, then the base64 function, since we need to understand that the content is not just a string but an encoded base64 text. Finally, change to the Dynamic content tab and click on the File Content output of your FTP connector. The full line should look like this:

decodeBase64(base64(outputs('Get_file_content')?['body']))

In this formula, the Get_file_content piece is equal to the name of the FTP action that retrieves the file.

This will return the content of the file, which for this example is as follows:

[
    {
     &...
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}