Form Recognizer Solution Accelerator

Published Apr 04 2022 11:31 AM 1,415 Views
Microsoft

The Form Recognizer Cognitive Service helps you quickly extract text and structure from documents. Custom document models can be trained to understand the specific structure and fields within your documents and extract valuable data. You can quickly train a custom document model that performs very well for your unique forms. Incorporating that model into an automated solution will be the focus of this article.

 

There are two common problems when incorporating scanned paper forms into a production-grade digital solution. The first problem is that documents are usually scanned as a stack of individual pages, which generates a multi-page file. This is efficient for the person scanning the documents, but for downstream solutions, this may cause other issues, such as individually referencing a form or leveraging solutions that are intended to work on a single page. The second problem is that not everyone is comfortable working with REST APIs or developing a fully automated solution. Azure provides you the tools necessary to overcome both of these problems.

 

This solution implements two capabilities that are commonly required when working with a trained custom document model:

 

  1. Splitting multi-page PDF documents into individual, single-page PDF documents
  2. Analyzing the results of documents sent to the Form Recognizer REST API endpoint of a trained custom document model

 

These capabilities are linked together in a cohesive solution using a pair of Logic Apps and an Azure Function.

 

It is important to note that my reference to the multi-page PDF document contains multiple pages of the same form. In other words, the form layout and structure on Page 1 is identical to the form layout and structure on Page 2 (and so on). Each form is only one page in length.

 

In our fictitious demonstration scenario, we will be working with Volunteer Forms which contain custom fields for first name and last name as well as selection marks for each volunteer activity. Below is a screenshot of what the forms look like.

 

000-sample-form.png

 

You can download all sample data here: https://aka.ms/form-reco-sample

 

There are two folders in the GitHub repository linked above:

 

  1. train – contains five individual PDF files (which you can use to train a custom document model in Form Recognizer)
  2. test – contains a single multi-page PDF file with four pages of filled out forms

 

Splitting PDFs

 

Often, when you work with paper-based documents, scanning multiple pages into a single document is the most reasonable way to efficiently digitize these valuable documents. The Form Recognizer service assumes a single document per file and when you have multiple documents scanned into a single file, you will need to split the documents or analyze by page ranges. This solution uses an Azure Function with open-source Python code to read the content of a multi-page PDF file and split it into individual, single-page PDF files. Wrapping this Azure Function in a Logic App provides you with the ability to easily trigger the Logic App whenever a new file is uploaded to a storage account and write each of the single-page PDF files to a storage account.

 

005-scanning-docs.png

 

Analyzing Results

 

The Form Recognizer service makes training a custom document model very easy. Here is a reference for how to train a custom model in the Form Recognizer studio. Once the model has completed training, it is immediately published and available to consume as a REST API endpoint. You can extract results from documents by sending the document data to the REST API endpoint which hosts your custom document model. Incorporating this machine learning model into an efficient and scalable solution can sometimes be challenging. This solution uses a Logic App to send single-page PDF document data to the published REST API endpoint of a trained custom document model and stores the resulting JSON data into a JSON file in a storage account.

 

006-extract-data.png

 

Bringing it all Together

 

In our fictitious Volunteer Form example, let's say that we filled out a few sample, single-page PDF documents to train a Form Recognizer custom document model. We want to extract the key fields: first name, last name, and each selection mark for volunteer activity. Once we have a model trained, blank forms were distributed to employees to fill out. Once all forms were filled out and gathered, they were placed into a digital scanner as a single stack of documents. The resulting multi-page PDF file has individual pages for each employee's form. To quickly extract the data from this form, we can upload the data to the "multi" container of our storage account and, in a few minutes, have the extracted data from each form.

 

In the architecture below, this solution can be fully automated once a multi-page PDF file is uploaded to a storage account container.

 

007-form-reco-accelerator.png

 

There are four containers in a storage account:

 

  1. train - intended for storing the training data for Form Recognizer
  2. multi - intended for storing multi-page PDF documents
  3. single - intended for storing single-page PDF documents
  4. results - which will contain the JSON results from the Form Recognizer API

 

There are two Logic Apps:

 

  1. Split PDFs - which splits multi-page PDFs to single-page PDFs
  2. Analyze Results - which sends single-page PDF data to the Form Recognizer API and stores the results of the trained custom document model to a JSON file in the “results” container.

 

The first Logic App is triggered when a multi-page PDF file is created in the “multi” container in a storage account. From there, the Logic App will send the PDF document to an Azure Function, which individually splits out each page in the document. The Azure Function returns the PDF data back to the Logic App, which then writes each single-page PDF document back to another container in the same storage account (single).

 

From here, another Logic App triggers whenever a single-page PDF file is created in the “single” container. This Logic App sends the PDF data to the REST API endpoint of your trained custom document model. The results of the API call are returned and stored as JSON. The data in the JSON document contains your custom form fields and selection marks.

 

Implementing this Solution

 

To implement this solution, go to the following GitHub repository and/or click the "Deploy to Azure" button.

 

stevedem/FormRecognizerAccelerator (github.com)

 

 

After clicking Deploy to Azure, you will be asked to fill out the following fields:

 

008-deploy-to-azure.jpg

 

Once the deployment succeeds, you should see six resources in your resource group.

 

009-deploy-results.jpg

 

Please note that this will only deploy the core infrastructure. There are a few steps to configure each service once deployed.

 

Each configuration is divided into these sections:

 

  • Storage Account - create containers & upload data
  • Form Recognizer - train custom document model
  • Function App - deploy open-source Python code to split PDFs
  • Split PDFs Logic App - split multi-page PDF documents to single-page PDF documents
  • Analyze Results Logic App - send single-page PDF document data to REST API endpoint of trained custom document model

 

Storage Account - create containers & upload data

 

Navigate to the storage account that was created during resource deployment.

 

010-containers.png

  

  1. Click Storage browser (preview)
  2. Click + Add container
  3. Enter "train" as the container name
  4. Repeat for the following containers: multi, single, results

 

Next, we will upload the training data. Download all five PDF files under the "train" folder of this GitHub repository: https://aka.ms/form-reco-sample

 

Then, navigate to the storage account that was created during resource deployment to upload these five PDF files.

 

011-upload-data.png

 

  1. Click Storage browser (preview)
  2. Select the "train" container
  3. Click Upload
  4. Select all five training documents from the provided sample data (download sample data here: http://aka.ms/form-reco-sample)

 

Before continuing to the next section, please follow the steps to Configure CORS (Cross Origin Resource Sharing) on your storage account. This is required to be enabled on your storage account for it to be accessible from the Form Recognizer Studio. A detailed walkthrough can be found here: Configure CORS | Microsoft Docs

 

Form Recognizer - train custom document model

 

Navigate to the Form Recognizer Studio: FormRecognizerStudio (azure.com)

 

  • Scroll down and click Create new Custom model. 

 

012-new-model.png

 

  • Scroll down and click + Create a project, enter project name and click Continue.

 

013-new-proj.png

 

  • Configure service resources by selecting the resource group and form recognizer service that was created during resource deployment. Then click Continue.

 014-service-resources.jpg

 

  • Connect training data source by selecting the resource group, storage account and train container that was created during resource deployment. Then click Continue.

015-training.jpg

 

  • Finally, review all configurations and finish creating the project.

Once your project is open and you can see all five training documents, label and train a custom document model by following these steps.

 

016-label-train.png

 

  1. Create two field labels for the first name and last name of the Volunteer Form.
  2. Create six selection marks labels for each volunteer activity.
  3. Repeat for all five training documents, then click Train.

 

  • Enter a Model ID and keep a note of the Model ID value (you need it later). Set the Build Mode to Neural and click Train.

017-model-id.jpg

 

Function App - deploy open-source Python code to split PDFs

 

Next step is to deploy the open-source Python code to split PDFs as an Azure Function.

 

  1. Navigate to the Azure Portal and open up an Azure Cloud Shell session by clicking the icon at the top of the screen.
  2. Enter the following commands to clone the GitHub repository and publish the Azure Function, replacing the <function-app-name> with the name of your Function App resource deployed during resource deployment.

018-publish-func.png

 

 

 

 

 

 

 

mkdir volunteer
cd volunteer
git clone https://github.com/stevedem/splitpdfs.git
cd splitpdfs
func azure functionapp publish <function-app-name>

 

 

 

 

 

 

 

After the command to publish the function has successfully completed, here is an example of the output.

 

019-deploy-succeed.jpg

 

Split PDFs Logic App - split multi-page PDF documents to single-page PDF documents

 

Next up is to build out the Logic App, which will call the Function App we just published.

 

  1. Add the Azure Blob Storage trigger When a blob is added or modified (properties only) (V2)

 

stevedem_0-1647895700346.png

 

  1. Create a connection to the storage account created during resource deployment. You will need to retrieve the storage account access key. If you need help finding your access key, please refer to this documentation: Manage account access keys - Azure Storage | Microsoft Docs

 

stevedem_1-1647895700352.png

 

  1. Select the connection you previously created and specify the following settings
Container /multi
Number of blobs to return 1
How often do you want to check for items 1 Minute

 

stevedem_2-1647895700357.png

 

  1. Add a new step: Get blob content (V2) with the following settings
Storage account name Use connection settings
Blob List of Files Path (Dynamic Expression)
Infer content type Yes

 

stevedem_3-1647895700361.png

 

  1. Add a new step: Azure Function with the following settings

Request Body:

 

 

 

 

 

 

 

{
  "fileContent": "@body('Get_blob_content_(V2)')",
  "fileName": "@triggerBody()?['DisplayName']"
}

 

 

 

 

 

 

 

stevedem_4-1647895700364.png

 

  1. Add a new step: Control: For each with the following settings:
Select an output from previous steps
@json(body('SplitPDFs'))['individualPDFs']

 

stevedem_5-1647895700369.png

 

  1. Add an action: Create blob (V2) with the following settings
Storage account name Use connection settings
Folder path /single
Blob name
@{items('For_each')?['fileName']}
Blob content
@base64ToBinary(items('For_each')?['fileContent'])

 

stevedem_6-1647895700375.png

 

  1. Click Save. Your Logic App should now look like this:

 

stevedem_7-1647895700378.png

 

 

 

Analyze Results Logic App - send single-page PDF document data to REST API endpoint of trained custom document model

 

Next step is to open the Logic App designer in the Azure portal for the second Logic App you deployed with "analyzeresults" in the name.

 

  1. Add the Azure Blob Storage trigger When a blob is added or modified (properties only) (V2) with the following settings:
Storage account name Use connection settings
Container /single
Number of blobs to return 1
How often to you want to check for items 1 Minute

 

stevedem_0-1648049719514.png

 

  1. Add a new step: Create SAS URI by path (V2) with the following settings:
Storage account name Use connection settings
Blob path List of Files Path (Dynamic Expression)

 

stevedem_1-1648049719542.png

 

  1. Add a new step: HTTP

Please note that you will have to replace a few variables tailored to your resource deployment. Here are the variables you must replace:

  • FORM_RECO_URI: this is the Endpoint of your Form Recognizer service in Azure. You can find your endpoint here after navigating to your Form Recognizer service that was created during resource deployment.

022-endpoint.png

 

  • FORM_RECO_KEY: this is the Key used to access your Cognitive Service API. You can find your Key here after navigating to your Form Recognizer service that was created during resource deployment.

023-keys.png

 

  • MODEL_ID: this is the Model ID that you created while training a custom document model in Form Recognizer Studio.

 

Method   POST
URI   <FORM_RECO_URI>/formrecognizer/documentModels/<MODEL_ID>:analyze?api-version= 2022-01-30-preview
Headers Ocp-Apim-Subscription-Key <FORM_RECO_KEY>
Body  
{"urlSource": "@{body('Create_SAS_URI_by_path_(V2)')?['WebUrl']}"}

 

stevedem_2-1648049719564.png

 

  1. Add a new step: Initialize variable with the following settings:
Name analyze-status
Type String
Value
@{null}

 

stevedem_3-1648049719571.png

 

  1. Add a new step: Until with the following settings
analyze-status
is equal to
succeeded

 

stevedem_4-1648049719577.png

 

  1. Add an action: HTTP with the following settings
Method   GET
URI  
@{outputs('HTTP')['headers']['Operation-Location']}
Headers Ocp-Apim-Subscription-Key <FORM_RECO_KEY>

 

stevedem_0-1648053508129.png

 

  1. Add an action: Set variable
Name

analyze-status

Value
@{body('HTTP_2')['status']}

 

stevedem_6-1648049719593.png

 

  1. Add an action: Delay
Count 10
Unit Second

 

stevedem_7-1648049719602.png

 

  1. Add a new step: Create blob (V2)
Storage account name Use connection settings
Folder path /results
Blob name
@{replace(triggerBody()?['DisplayName'], '.pdf', '.json')}
Blob content
@body('HTTP_2')

 

stevedem_8-1648049719610.png

 

  1. Click Save. Your Logic App should now look like this:

 

stevedem_2-1648061790592.png

 

Verifying the Functionality

 

Navigate to the storage account created during resource deployment.

 

  1. Click storage browser
  2. Click the “multi” blob container
  3. Click the “Upload” button to select a multi-page PDF to upload

 

stevedem_1-1648053574260.png

 

Wait a few minutes and check the status of the first Logic App, responsible for splitting PDFs. Then, navigate to the storage account deployed as part of the prerequisites.

 

  1. Click the storage browser
  2. Click the “single” blob container
  3. Verify that each page of the multi-page PDF was saved as an individual file

 

stevedem_2-1648053574290.png

 

Wait a few minutes and check the status of the second Logic App, responsible for analyzing results from single-page PDFs. Then, navigate to the storage account deployed as part of the prerequisites.

 

  1. Click the storage browser
  2. Click the “results” blob container
  3. Verify that each single-page PDF file has a corresponding JSON file with the custom document model output 

020-json-results.png

 

After downloading and inspecting the volunteer form and corresponding JSON output, we can quickly see that our data was efficiently and accurately extracted using our Form Recognizer custom document model.

 

021-results.png

 

Conclusion

 

In just a few steps we created an AI model and an orchestration pipeline. Now you can leverage this solution to extract valuable data from your multi-page PDF forms. You can check out the GitHub repository here, where this solution accelerator is hosted. In future iterations, we hope to further automate the deployment and configuration tasks.

 

stevedem/FormRecognizerAccelerator (github.com)

5 Comments
%3CLINGO-SUB%20id%3D%22lingo-sub-3262782%22%20slang%3D%22en-US%22%3EForm%20Recognizer%20Solution%20Accelerator%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3262782%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20Form%20Recognizer%20Cognitive%20Service%20helps%20you%20quickly%20extract%20text%20and%20structure%20from%20documents.%20Custom%20document%20models%20can%20be%20trained%20to%20understand%20the%20specific%20structure%20and%20fields%20within%20your%20documents%20and%20extract%20valuable%20data.%20You%20can%20quickly%20train%20a%20custom%20document%20model%20that%20performs%20very%20well%20for%20your%20unique%20forms.%20Incorporating%20that%20model%20into%20an%20automated%20solution%20will%20be%20the%20focus%20of%20this%20article.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20two%20common%20problems%20when%20incorporating%20scanned%20paper%20forms%20into%20a%20production-grade%20digital%20solution.%20The%20first%20problem%20is%20that%20documents%20are%20usually%20scanned%20as%20a%20stack%20of%20individual%20pages%2C%20which%20generates%20a%20multi-page%20file.%20This%20is%20efficient%20for%20the%20person%20scanning%20the%20documents%2C%20but%20for%20downstream%20solutions%2C%20this%20may%20cause%20other%20issues%2C%20such%20as%20individually%20referencing%20a%20form%20or%20leveraging%20solutions%20that%20are%20intended%20to%20work%20on%20a%20single%20page.%20The%20second%20problem%20is%20that%20not%20everyone%20is%20comfortable%20working%20with%20REST%20APIs%20or%20developing%20a%20fully%20automated%20solution.%20Azure%20provides%20you%20the%20tools%20necessary%20to%20overcome%20both%20of%20these%20problems.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20solution%20implements%20two%20capabilities%20that%20are%20commonly%20required%20when%20working%20with%20a%20trained%20custom%20document%20model%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESplitting%20multi-page%20PDF%20documents%20into%20individual%2C%20%3CEM%3Esingle-page%20PDF%20documents%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3EAnalyzing%20the%20results%20of%20documents%20sent%20to%20the%20Form%20Recognizer%20REST%20API%20endpoint%20of%20a%20trained%20custom%20document%20model%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThese%20capabilities%20are%20linked%20together%20in%20a%20cohesive%20solution%20using%20a%20pair%20of%20Logic%20Apps%20and%20an%20Azure%20Function.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20is%20important%20to%20note%20that%20my%20reference%20to%20the%20multi-page%20PDF%20document%20contains%20multiple%20pages%20%3CEM%3Eof%20the%20same%20form%3C%2FEM%3E.%20In%20other%20words%2C%20the%20form%20layout%20and%20structure%20on%20Page%201%20is%20%3CEM%3Eidentical%3C%2FEM%3E%20to%20the%20form%20layout%20and%20structure%20on%20Page%202%20(and%20so%20on).%20Each%20form%20is%20only%20one%20page%20in%20length.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20our%20fictitious%20demonstration%20scenario%2C%20we%20will%20be%20working%20with%20Volunteer%20Forms%20which%20contain%20custom%20fields%20for%20first%20name%20and%20last%20name%20as%20well%20as%20selection%20marks%20for%20each%20volunteer%20activity.%20Below%20is%20a%20screenshot%20of%20what%20the%20forms%20look%20like.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22000-sample-form.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357326iD3869FE3563E2028%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22000-sample-form.png%22%20alt%3D%22000-sample-form.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20download%20all%20sample%20data%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fform-reco-sample%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fform-reco-sample%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20two%20folders%20in%20the%20GitHub%20repository%20linked%20above%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSTRONG%3Etrain%3C%2FSTRONG%3E%20%E2%80%93%20contains%20five%20individual%20PDF%20files%20(which%20you%20can%20use%20to%20train%20a%20custom%20document%20model%20in%20Form%20Recognizer)%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3Etest%3C%2FSTRONG%3E%20%E2%80%93%20contains%20a%20single%20multi-page%20PDF%20file%20with%20four%20pages%20of%20filled%20out%20forms%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1404173545%22%20id%3D%22toc-hId--1379988986%22%20id%3D%22toc-hId--1379988986%22%20id%3D%22toc-hId--1379988986%22%20id%3D%22toc-hId--1379988986%22%20id%3D%22toc-hId--1379988986%22%3ESplitting%20PDFs%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOften%2C%20when%20you%20work%20with%20paper-based%20documents%2C%20scanning%20multiple%20pages%20into%20a%20single%20document%20is%20the%20most%20reasonable%20way%20to%20efficiently%20digitize%20these%20valuable%20documents.%26nbsp%3BThe%20Form%20Recognizer%20service%20assumes%20a%20single%20document%20per%20file%20and%20when%20you%20have%20multiple%20documents%20scanned%20into%20a%20single%20file%2C%20you%20will%20need%20to%20split%20the%20documents%20or%20analyze%20by%20page%20ranges.%20This%20solution%20uses%20an%20Azure%20Function%20with%20open-source%20Python%20code%20to%20read%20the%20content%20of%20a%20multi-page%20PDF%20file%20and%20split%20it%20into%20individual%2C%20single-page%20PDF%20files.%20Wrapping%20this%20Azure%20Function%20in%20a%20Logic%20App%20provides%20you%20with%20the%20ability%20to%20easily%20trigger%20the%20Logic%20App%20whenever%20a%20new%20file%20is%20uploaded%20to%20a%20storage%20account%20and%20write%20each%20of%20the%20single-page%20PDF%20files%20to%20a%20storage%20account.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22005-scanning-docs.png%22%20style%3D%22width%3A%20546px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357327iCAD74F93DFDD003E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22005-scanning-docs.png%22%20alt%3D%22005-scanning-docs.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1083339288%22%20id%3D%22toc-hId-1107523847%22%20id%3D%22toc-hId-1107523847%22%20id%3D%22toc-hId-1107523847%22%20id%3D%22toc-hId-1107523847%22%20id%3D%22toc-hId-1107523847%22%3EAnalyzing%20Results%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Form%20Recognizer%20service%20makes%20training%20a%20custom%20document%20model%20very%20easy.%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapplied-ai-services%2Fform-recognizer%2Fhow-to-guides%2Fbuild-custom-model-v3%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EHere%20is%20a%20reference%3C%2FA%3E%20for%20how%20to%20train%20a%20custom%20model%20in%20the%20Form%20Recognizer%20studio.%20Once%20the%20model%20has%20completed%20training%2C%20it%20is%20immediately%20published%20and%20available%20to%20consume%20as%20a%20REST%20API%20endpoint.%20You%20can%20extract%20results%20from%20documents%20by%20sending%20the%20document%20data%20to%20the%20REST%20API%20endpoint%20which%20hosts%20your%20custom%20document%20model.%20Incorporating%20this%20machine%20learning%20model%20into%20an%20efficient%20and%20scalable%20solution%20can%20sometimes%20be%20challenging.%20This%20solution%20uses%20a%20Logic%20App%20to%20send%20single-page%20PDF%20document%20data%20to%20the%20published%20REST%20API%20endpoint%20of%20a%20trained%20custom%20document%20model%20and%20stores%20the%20resulting%20JSON%20data%20into%20a%20JSON%20file%20in%20a%20storage%20account.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22006-extract-data.png%22%20style%3D%22width%3A%20626px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357328iD42031DEBE57606C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22006-extract-data.png%22%20alt%3D%22006-extract-data.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--724115175%22%20id%3D%22toc-hId--699930616%22%20id%3D%22toc-hId--699930616%22%20id%3D%22toc-hId--699930616%22%20id%3D%22toc-hId--699930616%22%20id%3D%22toc-hId--699930616%22%3EBringing%20it%20all%20Together%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20our%20fictitious%20Volunteer%20Form%20example%2C%20let's%20say%20that%20we%20filled%20out%20a%20few%20sample%2C%20single-page%20PDF%20documents%20to%20train%20a%20Form%20Recognizer%20custom%20document%20model.%20We%20want%20to%20extract%20the%20key%20fields%3A%20first%20name%2C%20last%20name%2C%20and%20each%20selection%20mark%20for%20volunteer%20activity.%20Once%20we%20have%20a%20model%20trained%2C%20blank%20forms%20were%20distributed%20to%20employees%20to%20fill%20out.%20Once%20all%20forms%20were%20filled%20out%20and%20gathered%2C%20they%20were%20placed%20into%20a%20digital%20scanner%20as%20a%20single%20stack%20of%20documents.%20The%20resulting%20multi-page%20PDF%20file%20has%20individual%20pages%20for%20each%20employee's%20form.%20To%20quickly%20extract%20the%20data%20from%20this%20form%2C%20we%20can%20upload%20the%20data%20to%20the%20%22multi%22%20container%20of%20our%20storage%20account%20and%2C%20in%20a%20few%20minutes%2C%20have%20the%20extracted%20data%20from%20each%20form.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20architecture%20below%2C%20this%20solution%20can%20be%20fully%20automated%20once%20a%20multi-page%20PDF%20file%20is%20uploaded%20to%20a%20storage%20account%20container.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22007-form-reco-accelerator.png%22%20style%3D%22width%3A%20514px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357330iB6BE91EA3B0215EE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22007-form-reco-accelerator.png%22%20alt%3D%22007-form-reco-accelerator.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20four%20containers%20in%20a%20storage%20account%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSTRONG%3Etrain%20%3C%2FSTRONG%3E-%20intended%20for%20storing%20the%20training%20data%20for%20Form%20Recognizer%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3Emulti%3C%2FSTRONG%3E%20-%20intended%20for%20storing%20multi-page%20PDF%20documents%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3Esingle%3C%2FSTRONG%3E%20-%20intended%20for%20storing%20single-page%20PDF%20documents%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3Eresults%3C%2FSTRONG%3E%20-%20which%20will%20contain%20the%20JSON%20results%20from%20the%20Form%20Recognizer%20API%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20two%20Logic%20Apps%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSTRONG%3ESplit%20PDFs%3C%2FSTRONG%3E%20-%20which%20splits%20multi-page%20PDFs%20to%20single-page%20PDFs%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAnalyze%20Results%3C%2FSTRONG%3E%20-%20which%20sends%20single-page%20PDF%20data%20to%20the%20Form%20Recognizer%20API%20and%20stores%20the%20results%20of%20the%20trained%20custom%20document%20model%20to%20a%20JSON%20file%20in%20the%20%E2%80%9Cresults%E2%80%9D%20container.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20first%20Logic%20App%20is%20triggered%20when%20a%20multi-page%20PDF%20file%20is%20created%20in%20the%20%E2%80%9Cmulti%E2%80%9D%20container%20in%20a%20storage%20account.%20From%20there%2C%20the%20Logic%20App%20will%20send%20the%20PDF%20document%20to%20an%20Azure%20Function%2C%20which%20individually%20splits%20out%20each%20page%20in%20the%20document.%20The%20Azure%20Function%20returns%20the%20PDF%20data%20back%20to%20the%20Logic%20App%2C%20which%20then%20writes%20each%20single-page%20PDF%20document%20back%20to%20another%20container%20in%20the%20same%20storage%20account%20(single).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFrom%20here%2C%20another%20Logic%20App%20triggers%20whenever%20a%20single-page%20PDF%20file%20is%20created%20in%20the%20%E2%80%9Csingle%E2%80%9D%20container.%20This%20Logic%20App%20sends%20the%20PDF%20data%20to%20the%20REST%20API%20endpoint%20of%20your%20trained%20custom%20document%20model.%20The%20results%20of%20the%20API%20call%20are%20returned%20and%20stored%20as%20JSON.%20The%20data%20in%20the%20JSON%20document%20contains%20your%20custom%20form%20fields%20and%20selection%20marks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1763397658%22%20id%3D%22toc-hId-1787582217%22%20id%3D%22toc-hId-1787582217%22%20id%3D%22toc-hId-1787582217%22%20id%3D%22toc-hId-1787582217%22%20id%3D%22toc-hId-1787582217%22%3EImplementing%20this%20Solution%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20implement%20this%20solution%2C%20go%20to%20the%20following%20GitHub%20repository%20and%2For%20click%20the%20%22Deploy%20to%20Azure%22%20button.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fstevedem%2FFormRecognizerAccelerator%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Estevedem%2FFormRecognizerAccelerator%20(github.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fportal.azure.com%2F%23create%2FMicrosoft.Template%2Furi%2Fhttps%253A%252F%252Fraw.githubusercontent.com%252Fstevedem%252FFormRecognizerAccelerator%252Fmain%252Finfrastructure%252Fazuredeploy.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%20%3CIMG%20src%3D%22https%3A%2F%2Faka.ms%2Fdeploytoazurebutton%22%20border%3D%220%22%20%2F%3E%20%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20clicking%20Deploy%20to%20Azure%2C%20you%20will%20be%20asked%20to%20fill%20out%20the%20following%20fields%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22008-deploy-to-azure.jpg%22%20style%3D%22width%3A%20731px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357339i9EB75ADC99EE42B6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22008-deploy-to-azure.jpg%22%20alt%3D%22008-deploy-to-azure.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20deployment%20succeeds%2C%20you%20should%20see%20six%20resources%20in%20your%20resource%20group.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22009-deploy-results.jpg%22%20style%3D%22width%3A%20431px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357341iDD63BF63EA88191A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22009-deploy-results.jpg%22%20alt%3D%22009-deploy-results.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20note%20that%20this%20will%20only%20deploy%20the%20core%20infrastructure.%20There%20are%20a%20few%20steps%20to%20configure%20each%20service%20once%20deployed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEach%20configuration%20is%20divided%20into%20these%20sections%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EStorage%20Account%3C%2FSTRONG%3E%20-%20create%20containers%20%26amp%3B%20upload%20data%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EForm%20Recognizer%3C%2FSTRONG%3E%20-%20train%20custom%20document%20model%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EFunction%20App%3C%2FSTRONG%3E%20-%20deploy%20open-source%20Python%20code%20to%20split%20PDFs%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ESplit%20PDFs%20Logic%20App%3C%2FSTRONG%3E%20-%20split%20multi-page%20PDF%20documents%20to%20single-page%20PDF%20documents%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAnalyze%20Results%20Logic%20App%3C%2FSTRONG%3E%20-%20send%20single-page%20PDF%20document%20data%20to%20REST%20API%20endpoint%20of%20trained%20custom%20document%20model%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--44056805%22%20id%3D%22toc-hId--19872246%22%20id%3D%22toc-hId--19872246%22%20id%3D%22toc-hId--19872246%22%20id%3D%22toc-hId--19872246%22%20id%3D%22toc-hId--19872246%22%3E%3CU%3EStorage%20Account%20-%20create%20containers%20%26amp%3B%20upload%20data%3C%2FU%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENavigate%20to%20the%20storage%20account%20that%20was%20created%20during%20resource%20deployment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22010-containers.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358066i2F952003CF197C70%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22010-containers.png%22%20alt%3D%22010-containers.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EClick%20Storage%20browser%20(preview)%3C%2FLI%3E%0A%3CLI%3EClick%20%2B%20Add%20container%3C%2FLI%3E%0A%3CLI%3EEnter%20%22train%22%20as%20the%20container%20name%3C%2FLI%3E%0A%3CLI%3ERepeat%20for%20the%20following%20containers%3A%20multi%2C%20single%2C%20results%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENext%2C%20we%20will%20upload%20the%20training%20data.%20Download%20all%20five%20PDF%20files%20under%20the%20%22train%22%20folder%20of%20this%20GitHub%20repository%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fform-reco-sample%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fform-reco-sample%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%2C%20navigate%20to%20the%20storage%20account%20that%20was%20created%20during%20resource%20deployment%20to%20upload%20these%20five%20PDF%20files.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22011-upload-data.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357344i1C5CDD7DFBA072ED%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22011-upload-data.png%22%20alt%3D%22011-upload-data.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EClick%20Storage%20browser%20(preview)%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20%22train%22%20container%3C%2FLI%3E%0A%3CLI%3EClick%20Upload%3C%2FLI%3E%0A%3CLI%3ESelect%20all%20five%20training%20documents%20from%20the%20provided%20sample%20data%20(download%20sample%20data%20here%3A%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fform-reco-sample%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Faka.ms%2Fform-reco-sample%3C%2FA%3E)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBefore%20continuing%20to%20the%20next%20section%2C%20%3CSTRONG%3Eplease%20follow%20the%20steps%20to%20Configure%20CORS%20(Cross%20Origin%20Resource%20Sharing)%3C%2FSTRONG%3E%20on%20your%20storage%20account.%20This%20is%20required%20to%20be%20enabled%20on%20your%20storage%20account%20for%20it%20to%20be%20accessible%20from%20the%20Form%20Recognizer%20Studio.%20A%20detailed%20walkthrough%20can%20be%20found%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapplied-ai-services%2Fform-recognizer%2Fquickstarts%2Ftry-v3-form-recognizer-studio%23configure-cors%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EConfigure%20CORS%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1851511268%22%20id%3D%22toc-hId--1827326709%22%20id%3D%22toc-hId--1827326709%22%20id%3D%22toc-hId--1827326709%22%20id%3D%22toc-hId--1827326709%22%20id%3D%22toc-hId--1827326709%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-636001565%22%20id%3D%22toc-hId-660186124%22%20id%3D%22toc-hId-660186124%22%20id%3D%22toc-hId-660186124%22%20id%3D%22toc-hId-660186124%22%20id%3D%22toc-hId-660186124%22%3E%3CU%3EForm%20Recognizer%20-%20train%20custom%20document%20model%3C%2FU%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENavigate%20to%20the%20Form%20Recognizer%20Studio%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fformrecognizer.appliedai.azure.com%2Fstudio%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EFormRecognizerStudio%20(azure.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EScroll%20down%20and%20click%20Create%20new%20Custom%20model.%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22012-new-model.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357346i5EA086CF96145201%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22012-new-model.png%22%20alt%3D%22012-new-model.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EScroll%20down%20and%20click%20%2B%20Create%20a%20project%2C%20enter%20project%20name%20and%20click%20Continue.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22013-new-proj.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357355iB4A29CB2BCBBE431%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22013-new-proj.png%22%20alt%3D%22013-new-proj.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EConfigure%20service%20resources%20by%20selecting%20the%20resource%20group%20and%20form%20recognizer%20service%20that%20was%20created%20during%20resource%20deployment.%20Then%20click%20Continue.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22014-service-resources.jpg%22%20style%3D%22width%3A%20948px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357357iA65F368A93177166%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22014-service-resources.jpg%22%20alt%3D%22014-service-resources.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EConnect%20training%20data%20source%20by%20selecting%20the%20resource%20group%2C%20storage%20account%20and%20train%20container%20that%20was%20created%20during%20resource%20deployment.%20Then%20click%20Continue.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22015-training.jpg%22%20style%3D%22width%3A%20959px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357358i0ECD685EE6F80DEC%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22015-training.jpg%22%20alt%3D%22015-training.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFinally%2C%20review%20all%20configurations%20and%20finish%20creating%20the%20project.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EOnce%20your%20project%20is%20open%20and%20you%20can%20see%20all%20five%20training%20documents%2C%20label%20and%20train%20a%20custom%20document%20model%20by%20following%20these%20steps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22016-label-train.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357362i4745FBB33A3F4D83%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22016-label-train.png%22%20alt%3D%22016-label-train.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreate%20two%20field%20labels%20for%20the%20first%20name%20and%20last%20name%20of%20the%20Volunteer%20Form.%3C%2FLI%3E%0A%3CLI%3ECreate%20six%20selection%20marks%20labels%20for%20each%20volunteer%20activity.%3C%2FLI%3E%0A%3CLI%3ERepeat%20for%20all%20five%20training%20documents%2C%20then%20click%20Train.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EEnter%20a%20Model%20ID%20and%20keep%20a%20note%20of%20the%20Model%20ID%20value%20(you%20need%20it%20later).%20Set%20the%20Build%20Mode%20to%20Neural%20and%20click%20Train.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22017-model-id.jpg%22%20style%3D%22width%3A%20774px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357372i04120453A27C94BF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22017-model-id.jpg%22%20alt%3D%22017-model-id.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1171452898%22%20id%3D%22toc-hId--1147268339%22%20id%3D%22toc-hId--1147268339%22%20id%3D%22toc-hId--1147268339%22%20id%3D%22toc-hId--1147268339%22%20id%3D%22toc-hId--1147268339%22%3E%3CU%3EFunction%20App%20-%20deploy%20open-source%20Python%20code%20to%20split%20PDFs%3C%2FU%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENext%20step%20is%20to%20deploy%20the%20open-source%20Python%20code%20to%20split%20PDFs%20as%20an%20Azure%20Function.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ENavigate%20to%20the%20Azure%20Portal%20and%20open%20up%20an%20Azure%20Cloud%20Shell%20session%20by%20clicking%20the%20icon%20at%20the%20top%20of%20the%20screen.%3C%2FLI%3E%0A%3CLI%3EEnter%20the%20following%20commands%20to%20clone%20the%20GitHub%20repository%20and%20publish%20the%20Azure%20Function%2C%20replacing%20the%20%3CFUNCTION-APP-NAME%3E%20with%20the%20name%20of%20your%20Function%20App%20resource%20deployed%20during%20resource%20deployment.%3C%2FFUNCTION-APP-NAME%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22018-publish-func.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357373i6761B335D0BE30A2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22018-publish-func.png%22%20alt%3D%22018-publish-func.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Emkdir%20volunteer%0Acd%20volunteer%0Agit%20clone%20https%3A%2F%2Fgithub.com%2Fstevedem%2Fsplitpdfs.git%0Acd%20splitpdfs%0Afunc%20azure%20functionapp%20publish%20%3CFUNCTION-APP-NAME%3E%3C%2FFUNCTION-APP-NAME%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20the%20command%20to%20publish%20the%20function%20has%20successfully%20completed%2C%20here%20is%20an%20example%20of%20the%20output.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22019-deploy-succeed.jpg%22%20style%3D%22width%3A%20853px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357374iD71EAFC2A64B3438%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22019-deploy-succeed.jpg%22%20alt%3D%22019-deploy-succeed.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1316059935%22%20id%3D%22toc-hId-1340244494%22%20id%3D%22toc-hId-1340244494%22%20id%3D%22toc-hId-1340244494%22%20id%3D%22toc-hId-1340244494%22%20id%3D%22toc-hId-1340244494%22%3E%3CU%3ESplit%20PDFs%20Logic%20App%20-%20split%20multi-page%20PDF%20documents%20to%20single-page%20PDF%20documents%3C%2FU%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENext%20up%20is%20to%20build%20out%20the%20Logic%20App%2C%20which%20will%20call%20the%20Function%20App%20we%20just%20published.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EAdd%20the%20Azure%20Blob%20Storage%20trigger%20When%20a%20blob%20is%20added%20or%20modified%20(properties%20only)%20(V2)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_0-1647895700346.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357387iED4CE9586D25BDD5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_0-1647895700346.png%22%20alt%3D%22stevedem_0-1647895700346.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3ECreate%20a%20connection%20to%20the%20storage%20account%20created%20during%20resource%20deployment.%20You%20will%20need%20to%20retrieve%20the%20storage%20account%20access%20key.%20If%20you%20need%20help%20finding%20your%20access%20key%2C%20please%20refer%20to%20this%20documentation%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fcommon%2Fstorage-account-keys-manage%3Ftabs%3Dazure-portal%23view-account-access-keys%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EManage%20account%20access%20keys%20-%20Azure%20Storage%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_1-1647895700352.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357389iCC7FE5771A73AC8B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_1-1647895700352.png%22%20alt%3D%22stevedem_1-1647895700352.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3ESelect%20the%20connection%20you%20previously%20created%20and%20specify%20the%20following%20settings%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EContainer%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%2Fmulti%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3ENumber%20of%20blobs%20to%20return%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E1%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EHow%20often%20do%20you%20want%20to%20check%20for%20items%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E1%20Minute%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_2-1647895700357.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357388iE5B6A98B9292F18A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_2-1647895700357.png%22%20alt%3D%22stevedem_2-1647895700357.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EAdd%20a%20new%20step%3A%20Get%20blob%20content%20(V2)%20with%20the%20following%20settings%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EStorage%20account%20name%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EUse%20connection%20settings%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EBlob%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EList%20of%20Files%20Path%20(Dynamic%20Expression)%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EInfer%20content%20type%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EYes%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_3-1647895700361.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357390iE502F0B374B4A648%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_3-1647895700361.png%22%20alt%3D%22stevedem_3-1647895700361.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EAdd%20a%20new%20step%3A%20Azure%20Function%20with%20the%20following%20settings%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3ERequest%20Body%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20%22fileContent%22%3A%20%22%40body('Get_blob_content_(V2)')%22%2C%0A%20%20%22fileName%22%3A%20%22%40triggerBody()%3F%5B'DisplayName'%5D%22%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_4-1647895700364.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357391iEB25A648A9F54F22%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_4-1647895700364.png%22%20alt%3D%22stevedem_4-1647895700364.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%3EAdd%20a%20new%20step%3A%20Control%3A%20For%20each%20with%20the%20following%20settings%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3ESelect%20an%20output%20from%20previous%20steps%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CPRE%3E%40json(body('SplitPDFs'))%5B'individualPDFs'%5D%3C%2FPRE%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_5-1647895700369.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357392i634F7277C537B5CF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_5-1647895700369.png%22%20alt%3D%22stevedem_5-1647895700369.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%227%22%3E%0A%3CLI%3EAdd%20an%20action%3A%20Create%20blob%20(V2)%20with%20the%20following%20settings%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EStorage%20account%20name%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EUse%20connection%20settings%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EFolder%20path%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3E%2Fsingle%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EBlob%20name%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3E%3CPRE%3E%40%7Bitems('For_each')%3F%5B'fileName'%5D%7D%3C%2FPRE%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EBlob%20content%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3E%3CPRE%3E%40base64ToBinary(items('For_each')%3F%5B'fileContent'%5D)%3C%2FPRE%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_6-1647895700375.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357394iB446CC2713805AAD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_6-1647895700375.png%22%20alt%3D%22stevedem_6-1647895700375.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%228%22%3E%0A%3CLI%3EClick%20Save.%20Your%20Logic%20App%20should%20now%20look%20like%20this%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_7-1647895700378.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357393i4B4044F2274B5754%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_7-1647895700378.png%22%20alt%3D%22stevedem_7-1647895700378.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--491394528%22%20id%3D%22toc-hId--467209969%22%20id%3D%22toc-hId--467209969%22%20id%3D%22toc-hId--467209969%22%20id%3D%22toc-hId--467209969%22%20id%3D%22toc-hId--467209969%22%3E%3CU%3EAnalyze%20Results%20Logic%20App%20-%20send%20single-page%20PDF%20document%20data%20to%20REST%20API%20endpoint%20of%20trained%20custom%20document%20model%3C%2FU%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENext%20step%20is%20to%20open%20the%20Logic%20App%20designer%20in%20the%20Azure%20portal%20for%20the%20second%20Logic%20App%20you%20deployed%20with%20%22analyzeresults%22%20in%20the%20name.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EAdd%20the%20Azure%20Blob%20Storage%20trigger%20When%20a%20blob%20is%20added%20or%20modified%20(properties%20only)%20(V2)%20with%20the%20following%20settings%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EStorage%20account%20name%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3EUse%20connection%20settings%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EContainer%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%2Fsingle%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3ENumber%20of%20blobs%20to%20return%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E1%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EHow%20often%20to%20you%20want%20to%20check%20for%20items%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E1%20Minute%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_0-1648049719514.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357970i9280EC2B383127E1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_0-1648049719514.png%22%20alt%3D%22stevedem_0-1648049719514.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EAdd%20a%20new%20step%3A%20Create%20SAS%20URI%20by%20path%20(V2)%20with%20the%20following%20settings%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EStorage%20account%20name%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3EUse%20connection%20settings%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EBlob%20path%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3EList%20of%20Files%20Path%20(Dynamic%20Expression)%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_1-1648049719542.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357971i09B579DE32EA20A7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_1-1648049719542.png%22%20alt%3D%22stevedem_1-1648049719542.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EAdd%20a%20new%20step%3A%20HTTP%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EPlease%20note%20that%20you%20will%20have%20to%20replace%20a%20few%20variables%20tailored%20to%20your%20resource%20deployment.%20Here%20are%20the%20variables%20you%20must%20replace%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EFORM_RECO_URI%3C%2FSTRONG%3E%3A%20this%20is%20the%20Endpoint%20of%20your%20Form%20Recognizer%20service%20in%20Azure.%20You%20can%20find%20your%20endpoint%20here%20after%20navigating%20to%20your%20Form%20Recognizer%20service%20that%20was%20created%20during%20resource%20deployment.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22022-endpoint.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358061i24AA19B32DADE5EE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22022-endpoint.png%22%20alt%3D%22022-endpoint.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EFORM_RECO_KEY%3C%2FSTRONG%3E%3A%20this%20is%20the%20Key%20used%20to%20access%20your%20Cognitive%20Service%20API.%20You%20can%20find%20your%20Key%20here%20after%20navigating%20to%20your%20Form%20Recognizer%20service%20that%20was%20created%20during%20resource%20deployment.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22023-keys.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358063iAA5A92CEF8B660A5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22023-keys.png%22%20alt%3D%22023-keys.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EMODEL_ID%3C%2FSTRONG%3E%3A%20this%20is%20the%20Model%20ID%20that%20you%20created%20while%20training%20a%20custom%20document%20model%20in%20Form%20Recognizer%20Studio.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%20height%3D%2230px%22%3EMethod%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%20height%3D%2230px%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EPOST%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%20height%3D%2257px%22%3EURI%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%20height%3D%2257px%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2257px%22%3E%3CFORM_RECO_URI%3E%2Fformrecognizer%2FdocumentModels%2F%3CMODEL_ID%3E%3Aanalyze%3Fapi-version%3D%202022-01-30-preview%3C%2FMODEL_ID%3E%3C%2FFORM_RECO_URI%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%20height%3D%2257px%22%3EHeaders%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%20height%3D%2257px%22%3EOcp-Apim-Subscription-Key%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2257px%22%3E%3CFORM_RECO_KEY%3E%3C%2FFORM_RECO_KEY%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%20height%3D%2268px%22%3EBody%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%20height%3D%2268px%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2268px%22%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%22urlSource%22%3A%20%22%40%7Bbody('Create_SAS_URI_by_path_(V2)')%3F%5B'WebUrl'%5D%7D%22%7D%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_2-1648049719564.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357972iF371ACD6F3891464%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_2-1648049719564.png%22%20alt%3D%22stevedem_2-1648049719564.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EAdd%20a%20new%20step%3A%20Initialize%20variable%20with%20the%20following%20settings%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EName%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3Eanalyze-status%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EType%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3EString%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EValue%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CPRE%3E%40%7Bnull%7D%3C%2FPRE%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_3-1648049719571.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357973iAFF1792E6FDF7767%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_3-1648049719571.png%22%20alt%3D%22stevedem_3-1648049719571.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EAdd%20a%20new%20step%3A%20Until%20with%20the%20following%20settings%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22100%25%22%3Eanalyze-status%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22100%25%22%3Eis%20equal%20to%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22100%25%22%3Esucceeded%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_4-1648049719577.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357976iF91C1716A061F713%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_4-1648049719577.png%22%20alt%3D%22stevedem_4-1648049719577.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%3EAdd%20an%20action%3A%20HTTP%20with%20the%20following%20settings%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%3EMethod%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3EGET%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%3EURI%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CPRE%3E%40%7Boutputs('HTTP')%5B'headers'%5D%5B'Operation-Location'%5D%7D%3C%2FPRE%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2225%25%22%3EHeaders%3C%2FTD%3E%0A%3CTD%20width%3D%2225%25%22%3EOcp-Apim-Subscription-Key%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CFORM_RECO_KEY%3E%3C%2FFORM_RECO_KEY%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_0-1648053508129.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358009iA2D95A40BBF7319D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_0-1648053508129.png%22%20alt%3D%22stevedem_0-1648053508129.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%227%22%3E%0A%3CLI%3EAdd%20an%20action%3A%20Set%20variable%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EName%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CP%3Eanalyze-status%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EValue%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CPRE%3E%40%7Bbody('HTTP_2')%5B'status'%5D%7D%3C%2FPRE%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_6-1648049719593.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357977i7C1BF9AA8D884726%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_6-1648049719593.png%22%20alt%3D%22stevedem_6-1648049719593.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%228%22%3E%0A%3CLI%3EAdd%20an%20action%3A%20Delay%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3ECount%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3E10%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3EUnit%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2230px%22%3ESecond%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_7-1648049719602.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357978i55164EEEC07C3CB8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_7-1648049719602.png%22%20alt%3D%22stevedem_7-1648049719602.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%229%22%3E%0A%3CLI%3EAdd%20a%20new%20step%3A%20Create%20blob%20(V2)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EStorage%20account%20name%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3EUse%20connection%20settings%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EFolder%20path%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%2Fresults%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3EBlob%20name%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CPRE%3E%40%7Breplace(triggerBody()%3F%5B'DisplayName'%5D%2C%20'.pdf'%2C%20'.json')%7D%3C%2FPRE%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EBlob%20content%3C%2FTD%3E%0A%3CTD%3E%3CPRE%3E%40body('HTTP_2')%3C%2FPRE%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_8-1648049719610.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357979i974B1B705DDCCD5D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_8-1648049719610.png%22%20alt%3D%22stevedem_8-1648049719610.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2210%22%3E%0A%3CLI%3EClick%20Save.%20Your%20Logic%20App%20should%20now%20look%20like%20this%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_2-1648061790592.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358059i3D9799DB77AA1DFD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_2-1648061790592.png%22%20alt%3D%22stevedem_2-1648061790592.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1300954826%22%20id%3D%22toc-hId-1325139385%22%20id%3D%22toc-hId-1325139385%22%20id%3D%22toc-hId-1325139385%22%20id%3D%22toc-hId-1325139385%22%20id%3D%22toc-hId-1325139385%22%3EVerifying%20the%20Functionality%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENavigate%20to%20the%20storage%20account%20created%20during%20resource%20deployment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EClick%20storage%20browser%3C%2FLI%3E%0A%3CLI%3EClick%20the%20%E2%80%9Cmulti%E2%80%9D%20blob%20container%3C%2FLI%3E%0A%3CLI%3EClick%20the%20%E2%80%9CUpload%E2%80%9D%20button%20to%20select%20a%20multi-page%20PDF%20to%20upload%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_1-1648053574260.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358010i85FEB01EA20734B7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_1-1648053574260.png%22%20alt%3D%22stevedem_1-1648053574260.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWait%20a%20few%20minutes%20and%20check%20the%20status%20of%20the%20first%20Logic%20App%2C%20responsible%20for%20splitting%20PDFs.%20Then%2C%20navigate%20to%20the%20storage%20account%20deployed%20as%20part%20of%20the%20prerequisites.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EClick%20the%20storage%20browser%3C%2FLI%3E%0A%3CLI%3EClick%20the%20%E2%80%9Csingle%E2%80%9D%20blob%20container%3C%2FLI%3E%0A%3CLI%3EVerify%20that%20each%20page%20of%20the%20multi-page%20PDF%20was%20saved%20as%20an%20individual%20file%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stevedem_2-1648053574290.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358011i98CB7986CE96BCBE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stevedem_2-1648053574290.png%22%20alt%3D%22stevedem_2-1648053574290.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWait%20a%20few%20minutes%20and%20check%20the%20status%20of%20the%20second%20Logic%20App%2C%20responsible%20for%20analyzing%20results%20from%20single-page%20PDFs.%20Then%2C%20navigate%20to%20the%20storage%20account%20deployed%20as%20part%20of%20the%20prerequisites.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EClick%20the%20storage%20browser%3C%2FLI%3E%0A%3CLI%3EClick%20the%20%E2%80%9Cresults%E2%80%9D%20blob%20container%3C%2FLI%3E%0A%3CLI%3EVerify%20that%20each%20single-page%20PDF%20file%20has%20a%20corresponding%20JSON%20file%20with%20the%20custom%20document%20model%20output%26nbsp%3B%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22020-json-results.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358013iAC0D7051476D2592%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22020-json-results.png%22%20alt%3D%22020-json-results.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20downloading%20and%20inspecting%20the%20volunteer%20form%20and%20corresponding%20JSON%20output%2C%20we%20can%20quickly%20see%20that%20our%20data%20was%20efficiently%20and%20accurately%20extracted%20using%20our%20Form%20Recognizer%20custom%20document%20model.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22021-results.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358018i875C2B15CA3C9928%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22021-results.png%22%20alt%3D%22021-results.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--506499637%22%20id%3D%22toc-hId--482315078%22%20id%3D%22toc-hId--482315078%22%20id%3D%22toc-hId--482315078%22%20id%3D%22toc-hId--482315078%22%20id%3D%22toc-hId--482315078%22%3EConclusion%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20just%20a%20few%20steps%20we%20created%20an%20AI%20model%20and%20an%20orchestration%20pipeline.%20Now%20you%20can%20leverage%20this%20solution%20to%20extract%20valuable%20data%20from%20your%20multi-page%20PDF%20forms.%20You%20can%20check%20out%20the%20GitHub%20repository%20here%2C%20where%20this%20solution%20accelerator%20is%20hosted.%20In%20future%20iterations%2C%20we%20hope%20to%20further%20automate%20the%20deployment%20and%20configuration%20tasks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fstevedem%2FFormRecognizerAccelerator%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Estevedem%2FFormRecognizerAccelerator%20(github.com)%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3262782%22%20slang%3D%22en-US%22%3E%3CP%3EAccelerate%20your%20Form%20Recognizer%20solution%20to%20production%20with%20this%20Solution%20Accelerator%2C%20which%20leverages%20an%20Azure%20Function%20and%20a%20set%20of%20Logic%20Apps%20to%20split%20multi-page%20PDF%20files%20to%20single-page%20PDF%20files%20and%20sends%20individual%20PDF%20files%20to%20the%20REST%20API%20endpoint%20of%20a%20trained%20custom%20document%20model%20in%20Form%20Recognizer.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3281623%22%20slang%3D%22en-US%22%3ERe%3A%20Form%20Recognizer%20Solution%20Accelerator%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3281623%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F348426%22%20target%3D%22_blank%22%3E%40stevedem%3C%2FA%3E%26nbsp%3Bthanks%20for%20such%20a%20detailed%20response!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20end%20I%20would%20like%20to%20have%20a%20joint%2C%20single%20output%20file%20in%20which%20records%20from%20all%20the%20PDF%20files%20would%20be%20stored.%20Is%20it%20possible%20to%20implement%20such%20a%20solution%20in%20the%20Logic%20App%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3278750%22%20slang%3D%22en-US%22%3ERe%3A%20Form%20Recognizer%20Solution%20Accelerator%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3278750%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1356170%22%20target%3D%22_blank%22%3E%40alexus98%3C%2FA%3E%26nbsp%3B%2C%20thanks%20for%20the%20comment.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3ETo%20answer%20your%20first%20question%2C%20I%20would%20recommend%20using%20a%20composite%20model.%20A%20composite%20model%20represents%20a%26nbsp%3B%3CSPAN%3Ecollection%20of%20custom%20models%20and%20assigns%20them%20to%20a%20single%20model%20that%20encompasses%20your%20form%20types.%20During%20scoring%2C%20the%20composite%20model%20performs%20a%20classification%20step%20to%20determine%20which%20custom%20model%20the%20current%20form%20represents.%20You%20can%20then%20use%20the%20model%20ID%20of%20the%20composite%20model%20in%20this%20solution%20and%20let%20the%20Form%20Recognizer%20service%20determine%20which%20custom%20model%20to%20use.%20Check%20out%20more%20information%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapplied-ai-services%2Fform-recognizer%2Fcompose-custom-models%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapplied-ai-services%2Fform-recognizer%2Fcompose-custom-models%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20your%20second%20question%2C%20when%20you%20send%20document%20data%20to%20the%20REST%20API%20endpoint%2C%20an%20HTTP%20response%20is%20returned%2C%20which%20we%20capture%20in%20this%20solution%20as%20JSON.%20If%20you%20need%20to%20convert%20that%20JSON%20to%20a%20CSV%20file%2C%20you%20could%20attempt%20to%20do%20so%20as%20additional%20steps%20in%20the%20Analyze%20Results%20Logic%20App.%20There%20may%20be%20some%20complexity%20parsing%20the%20JSON%20for%20the%20specific%20fields%20you%20are%20interested%20in%20retaining%20in%20the%20CSV%20file.%20A%20quick%20search%20for%20%E2%80%9CLogic%20App%20JSON%20to%20CSV%E2%80%9D%20appears%20it%20is%20possible%2C%20but%20would%20require%20testing%20for%20your%20specific%20scenario.%20Check%20out%20more%20information%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F48923628%2Flogic-app-create-csv-table-from-json-output%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F48923628%2Flogic-app-create-csv-table-from-json-output%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3278549%22%20slang%3D%22en-US%22%3ERe%3A%20Form%20Recognizer%20Solution%20Accelerator%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3278549%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F348426%22%20target%3D%22_blank%22%3E%40stevedem%3C%2FA%3E%2C%20I%20have%20a%20question%20regarding%20the%20tutorial.%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20In%20my%20solution%20I%20use%203%20different%20custom%20forms%20(they%20vary%20slightly%20from%20each%20other)%2C%20hence%20I%20trained%203%20different%20models.%20I%20want%20to%20choose%20which%20model%20should%20the%20app%20use%20when%20I%20upload%20the%20data.%3C%2FP%3E%3CP%3E2)%20I%20would%20like%20to%20have%20a%20single%20(preferably%20a%20csv)%20output%20file%20with%20data%20from%20all%20the%20splitted%20pdfs%20that%20were%20fed%20to%20the%20Form%20Recognizer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20implement%20these%20two%20points%20into%20the%20solution%20you%20presented%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3357925%22%20slang%3D%22en-US%22%3ERe%3A%20Form%20Recognizer%20Solution%20Accelerator%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3357925%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20Steve%2C%3C%2FP%3E%3CP%3EThanks%20for%20the%20detailed%20information.%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20make%20this%20solution%20on%20my%20trail%20account%20but%20unfortunately%20I%20am%20unable%20to%20publish%20Azure%20function%20by%20using%20Python%20code%20and%20getting%20below%20error%20in%20Bash.%20Please%20assist%20me%20on%20how%20to%20solve%20this%20error%20and%20proceed%20further.%20Thanks%20in%20advance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Rameshnimmala_0-1652279160832.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370836i077A553B8AEC223B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Rameshnimmala_0-1652279160832.png%22%20alt%3D%22Rameshnimmala_0-1652279160832.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Version history
Last update:
‎Apr 04 2022 11:34 AM
Updated by: