Introduction
In this article, we will learn how we can process Multi-Layout Forms using Power Apps and Form Processing AI Builder.
In our earlier article, we talked about how we can build, train and publish Form Processing AI Builder Model. If you haven’t visited my earlier article, please visit using this URL.
Prerequisites
Create the following SharePoint lists.
Invoice Multiples
Master List to store all basic information

Invoice Line Items
List to store line items (table) from each invoice.

Now, let’s build a Power App.
- Create a blank Canvas App for Tablet Layout.
- From insert Menu, go to AI Builder section and select “Form Processor”.
- That will add one control on-screen.
- Select Form Processor control and provide AI Model as the published model from the previous article.

- Let’s add a Form to pre-populate values.
- Go to Insert > Forms > Edit Forms
- Provide data source as “Invoice-Multiple” list.
- Now, to prepopulate the fields from the FormProcessor control, select each datacard and open the Default event. Write the following code.
FormProcessor1.Fields.'Invoice No'
We will get the field names using the “FormProcessor1.Fields” property. Here, the field name is the same as we defined in our earlier article.

Follow the same procedure for the other fields:
|
Field Name
|
Code
|
|
Invoice Date
|
FormProcessor1.Fields.Date
|
|
Invoice Address
|
FormProcessor1.Fields.'Street Address'
|
|
Invoice StateCity
|
FormProcessor1.Fields.'City-State'
|
|
Invoice Phone
|
FormProcessor1.Fields.'Phone No'
|
|
Invoice Email
|
FormProcessor1.Fields.Email
|
|
Invoice to Address
|
FormProcessor1.Fields.'Street Address'
|
|
Invoice to Company
|
FormProcessor1.Fields.'Invoice To Company Name'
|
|
Invoice to State-City
|
FormProcessor1.Fields.'Invoice To State City'
|
|
Invoice to Phone
|
FormProcessor1.Fields.'Invoice To Phone'
|
|
Invoice to Email
|
FormProcessor1.Fields.'Invoice To Email'
|
|
Subtotal
|
FormProcessor1.Fields.Subtotal
|
|
Total
|
FormProcessor1.Fields.Total
|
|
Sales Tax
|
FormProcessor1.Fields.SalesTax
|




Comments
Join the conversation! Your thoughts help the community grow.