This directory contains a Power Platform Solution with Power Automate and Dataverse components that illustrate the ability to pick up a JSON blob output by the example AI document data extraction functions contained in this repo, and write it to Dataverse for further integration with other systems. Scripts and configuration files are also included to automate the deployment of the solution to a Power Platform environment.
DocArchiveRequest-xxxx.zip: Power Platform Solution, including:- Data model to support example integration of JSON extracted data into Dataverse
- Primary integration flow example
Process JSON DeocInfo into DVcloud flow: triggered by a new blob created, parses JSON blob into a record in theArchive Requesttable, and a record into theExtracted Entitytable for each key/value pair related to the createdArchive Request
- Secondary integration flow example
Process JSON into DV key-value recordscloud flow: triggered by a new blob created, parses JSON blob into a record in theArchive Requesttable and calls the child flows to record extracted detailsCHILD - Process Protocol Doccloud flow: called to map extracted details into theProtocol Doctable, related to the createdArchive RequestCHILD - Process Report Doccloud flow: called to map extracted details into theReport Doctable, related to the createdArchive Request
export-solution.ps1: PowerShell script used to export solution files from the environment defined in asettings.jsonfiledeploy-solution.ps1: PowerShell script that deploys the specified solution to the environment defined in asettings.jsonfilesettings.json: This file contains the configuration settings for the deployment scripts. You need to create this file based on thesettings_sample_jsonfile and update it with the correct values for your environment.
- Use the
settings_sample_jsonfile to create asettings.jsonfile in the same directory. - Update the
settings.jsonfile with the correct values for your environment. - Create connections in the target environment for Dataverse and Azure Blob Storage. Record the connection ID from the URL for each.
- Update the
DocArchiveRequest_deploySettings.jsonfile with the correct connection IDs. More information can be found here. - Run the
deploy-solution.ps1script.
The pac commands used in the script are part of the Power Apps CLI. You need to have the Power Apps CLI installed and added to your system's PATH. More information about the Power Apps CLI can be found here.