web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Upload a pdf/image in ...
Power Apps
Answered

Upload a pdf/image in power app, extracts data from it using AI Builder, insert the extracted data in sharepoint and retrieves it to the power app for display

(0) ShareShare
ReportReport
Posted on by 12

Hi guys! I'm trying to create a flow that works when I upload a pdf/image in power app, extracts data from the AI Builder model that I created and inserts it in a list in sharepoint + retrieves the data back to power app. I tried something like in the attached image but couldn't figure out what should I put in Power App (after I selected Action-Power Automate and selected the flow) in File Content, I mean, in the Run command that appears.

First I tried to do this by using a form processor, so the images I attach would be with that idea.

Hope you can help me! Thanks!

P.S: Don't blame me for how it looks, tried a lot of things 😁.

Categories:
I have the same question (0)
  • JoeF-MSFT Profile Picture
    on at

    Hi @Crantz - thanks for the question. No worries, this is a very welcoming community. You will see that my app UX skill won't win design of the year award 😉

     

    This is an interesting use case. You should we able to do all this within the Power App. Here's what I'd suggest:

     

    1. Add the form processor control and then text inputs for each of the fields you want to display. Last, add a button

    JoeFMSFT_1-1645049292719.png

     

    2. For each of the text inputs, set each Default property to get the corresponding value to display what will get extracted by the AI Builder form processor control. To do this, write the following expression, using the name of the fields you defined on the AI model:

     

    JoeFMSFT_2-1645049346280.png

     

     3. Test the app and upload a document. It should display the extracted values on the text inputs

     

    JoeFMSFT_3-1645049510038.png

     

    4. Exit preview mode and now let's save the data to SharePoint. On the Data menu on the left, select Add Data and pick SharePoint.

     

    JoeFMSFT_4-1645049662168.png

     

    5. Power Apps will then ask you to pick a list

     

    JoeFMSFT_5-1645049702443.png

     

    6. Now on the button that we added to the app, on the OnSelect property set the following formula: 

     

    Collect('List name', {'Column name 1': TextInput1.Text , 'Column name 2': TextInput1_1.Text})


    Replace List name, Column names to match yours, and add as many columns present on your SharePoint list

    JoeFMSFT_6-1645049779076.png

     

    Now if you run the app and select that button, the data displayed on the text inputs should be saved to the SharePoint list. 🎉

  • CU05011558-1 Profile Picture
    12 on at

    Hi, @JoeF-MSFT ! Thank you for your time! I already did it with a button, but I thought I could do it automatically when I insert a pdf with a flow.  I mean not to insert any button, just upload a pdf/image and instantly extract the data and put it in sharepoint or just get it back to power app ( like you showed with text inputs, but done it by the flow).
    Have any ideas on that? Thank you again ! 😀

  • Verified answer
    JoeF-MSFT Profile Picture
    on at

    Got it @Crantz ! 👍 For this case, you can follow the following walkthrough: Use invoice processing in Power Apps - AI Builder | Microsoft Docs that explains how to upload an invoice form a Power App, process it in a cloud flow in Power Automate and return the results back to a Power App. 

     

    For your case, you just have to replace the invoice processing action in the flow by the form processing one, and add the Create item step for SharePoint. 

  • CU05011558-1 Profile Picture
    12 on at

    Somehow, I've managed to get it done. Muchas gracias @JoeF-MSFT ! I will add some images maybe it will help someone else. 😉

     

    - Returnextracteddataandinsertsharepoint - the name of the flow

    - FormProc                                                  - the name of the form processor

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard