Test Form Processing
About the Author: Manish Luhana
Microsoft business applications specialist and certified trainer.
Categories: AI Builder, Power Platform0 CommentsPublished On: 14 March 2021

We explained how to train and publish the Form processing AI Model in another blog. This blog will go through how to use the AI model in a real-world situation.

We’ll submit the input from SharePoint in our demonstration.

  • The user must first upload the content to SharePoint as the first step.
  • The Power automate flow will be activated next.
  • The next step is to deliver the data or file content to the AI Model via Power automation.
  • The result/output is returned by the Next AI model.
  • Finally, Power automates the modification of the result in the SharePoint List, allowing us to double-check the data.

Use-Case

How to use Power Automate to consume AI models step by step

  1. Make a SharePoint list with the fields listed below. These are the objects/data elements that the form will gather.
  • Passport Number – String
  • Date of Birth – Date and Time (Date Only)
  • Place of Birth – String
  • Issue Date – Date and Time (Date Only)
  • Expiry Date – Date and Time (Date Only)
  1. Create a cloud flow that is automated.
  • Go to https://make.powerapps.com to get started.
  • Choose a suitable setting.
  • Make a new solution (If not exist already)

 Note: There are several limitations in the default setting.

Create-Solution-1

  1. To build a Cloud Flow, go to File > New > Cloud Flow.

New-Cloud-Flow

  1. Source: SharePoint
  2. Trigger: When an item is created or modified

Select-Trigger

  1. Fill in the flow’s name.
  2. Choose your SharePoint site and list.

When-Item-Created

  1. To get SharePoint Attachments, add a new action.
  • Select the same Site and list.
  • The id from the Trigger step should be used.

Get-Attachments_1

  1. Add a SharePoint File Content action
  • Choose the same location.
  • The ‘Id’ from the “Get attachments” step should be used as the File Identifier.

Get-File-Content

  1. Send the contents of the file to AI Model.
  • Choose the AI model that we designed.
  • Choose a form type (this may be done dynamically to determine the file type/extension)

Process-1

  1. Add the results to a SharePoint list item.
  • From the Model findings, we gathered the following 5 fields.

Update-SP

  1. Full view of the cloud flow

Full-Flow-View

  1. In SharePoint, create a new list item.
  • Include a file attachment (Test Passport)
  • Save the list to your computer.

Flow should be activated at any time.

Add-new-list-item

  1. Check the results in the SharePoint list.

Result

tech mentor sidebanner
  • Continue reading
  • Continue reading
  • Continue reading
  • Continue reading
  • Continue reading

Leave A Comment