LogoLogo

Our Products

Metadata Browser

Edge Add-on

HTML To PDF Converter

Power Automate Connector

Data Mask for Dataverse

Dataverse App

Commission 365

Dynamics 365 App

AI Autocloser

Dataverse App

Flow Monitor

Power Automate App

ServicesAboutCareersBlogContact
Chat on Teams
Metadata BrowserHTML To PDF ConverterData Mask for DataverseCommission 365AI AutocloserFlow Monitor
ServicesAboutCareersBlogContactChat on Teams
HomeBlogAutomate Image Data Extraction Using Power Apps and AI

Automate Image Data Extraction Using Power Apps and AI

January 01, 2025
#Power Apps#AI
Harshitha Madem
Automate Image Data Extraction Using Power Apps and AI

Extracting structured data from unstructured images and documents can be a challenging task. By integrating AI with Power Apps, this process becomes much easier. Users can upload images or documents, trigger automated workflows, and retrieve data for further use. Key details, such as names, contact information, and company identifiers, can be extracted from the files and displayed directly in the app for easy access and management. 

In this blog, we’ll go through the step-by-step process to set this up, including creating the AI model, building a canvas app, and connecting it with Power Automate. 

Firstly, log in to https://make.powerapps.com. 

Step 1: Create the AI Model 

In the left navigation panel, click on AI Hub. 

1

Select AI models to start creating a new AI model.

2

Choose the Document processing template. 

3

Click on Create custom model.

4

Choose as the document type.

Need help with your business solution?

Our team can help you implement the right solution for your organization.

Get in touch
LogoLogo

Ex-Microsoft experts helping businesses get more from their Dynamics 365 and Power Platform investments.

Products

General documents
5

Click on Add and define the variables such as FirstName, LastName, Email, and Phone. 

6

Click Next to add the documents.

7

Click on New Collection and add more than five documents. 

8

Tag the fields you want to extract from the document, such as First Name, Last Name, Email, and Phone. Then, map these fields to the corresponding variables you defined earlier.

9

Click Next.

10

Rename the model as AutoDocReader and click Train.

11

This process takes around 20 minutes to complete. 

Click Publish. 

12

Create a Canvas App and Power Automate Flow 

In the Power Apps portal, select the solution and click on New Canvas App.

13

Give the app name as Document Reader App and click on Create. 

14

Click on the ellipsis and select Power Automate. 

We use Power Automate to trigger the AI model and manage the process of sending image data for extraction. This means that when an image is uploaded in the app, the flow automatically works with the AI model to pull out the needed information and returns the results to be displayed in the app. 

15

Click on Create new flow to create a flow from blank. 

16

Name the flow appropriately (e.g., ProcessImageData) and click on Add an input. 

17

Select the input type as Text and rename it to Image.

18

Click on the New step and select Initialize variable.

19

Name the variable as imageData and select Array as the variable type. 

20

Select the Parse JSON connector and choose the dynamic value Image as the content input. 

21

Provide the Schema for Parse JSON. 

22

Add a Set variable connector, select imageData as the variable name, and use the following Power Fx formula in the Value field. 

split(string(body('Parse_JSON')), ',') 

23

Add the Extract information from documents connector, select the AI model that was published earlier, and set the form type to JPEG image. 

For the form field, use the following Power Fx formula: 

base64ToBinary(replace(variables('imageData')[1],'""}','')) 

24

Select the Respond to Power App or Flow connector, and then map the text outputs for FirstName, LastName, Email, and Phone. Choose the appropriate values from the Extract information from documents connector. 

25

Save the flow and go to the Canvas App. 

Click on Insert and select Add picture. 

26

Select the AddMediaButton1 and use the following Power Fx formula in the OnSelect property. 

Set(AutoDocReader, ProcessImageData.Run(JSON(UploadedImage1.Image, JSONFormat.IncludeBinaryData))); 

If(!IsBlankOrError(AutoDocReader), 

Collect( 

DocumentCollection, 

{ 

FirstName: Text(AutoDocReader.firstname), 

LastName : Text(AutoDocReader.lastname), 

Email: Text(AutoDocReader.email), 

Phone: Text(AutoDocReader.phone) 

} 

) 

) 

27

In the DisplayDetails screen, insert a vertical gallery and set its item property to DocumentCollection. 

28

Insert a button and set its OnSelect property to navigate to the DisplayDetails screen. 

29

Test the output by selecting a picture and clicking the Save button.

30

Now the details can be seen in the form. 

31
Frequently Asked Questions:
1. What type of documents can be processed with the AI model in Power Apps? 

The AI model supports various types of documents, such as general documents and images in formats like JPEG. You can specify the document type when creating the AI model.

2. How many documents are required to train the AI model?

To ensure accurate data extraction, you need to upload and tag at least five documents during the model training process.

3. Is it possible to integrate this solution with other data sources in Power Apps?

Yes, you can integrate the extracted data from the AI model with other data sources in Power Apps, such as SharePoint, Dataverse, or external APIs, to store or process the information further.

4. Can the AI model handle documents with handwriting or poor-quality images?

The AI model is optimized for printed text, and its accuracy may decrease with handwritten or low-quality images. You can improve results by providing clearer, high-quality documents during training.

Back to all articles

More from the blog

Adding Generative AI to your Cloud Flows with AI Prompts

Creating and managing topics in Copilot Studio with Power Apps integration

Integrating AI Hub and Power Automate for intelligent workflows

Creating a Loading Animation in Power Apps

Creating Virtual Tables in Power Apps using Share Point Connector

Creating an App from Figma in Power Apps

How to Create Custom Connectors in Power Apps?

Implementing Catalog Manager: A Step-by-Step Guide in Power Apps

Metadata Browser
  • HTML To PDF Converter
  • Data Mask for Dataverse
  • Commission 365
  • AI Autocloser
  • Flow Monitor
  • Services

    • D365 Marketing
    • D365 Sales
    • D365 Customer Service
    • D365 Field Service

    Company

    • About Us
    • Blog
    • Contact
    • Careers

    Copyright ©2026 Pascalcase Software Private Limited. All rights reserved.

    Privacy PolicyTerms of Service