In this exercise you will learn:
- How to modify and add an automation as a dependency.
The pre-built automation extracts the data from the Invoice document using AI.
-
Once the dependency is completed, choose Extract Invoice Data, select three dots, and then Open Editor.
-
In Automation Details, go to Input/Output to modify the parameters.
-
Rename FilePath to fileName.
-
Select Add new input parameter and name it folderName.
After the changes the parameters should look like this:
-
Go to Tools, select Automations and drag and drop the Download document automation into the canvas, just before Extract Data activity.
-
Select Download document automation.
-
You will now map the Input Parameters. Select Edit Expression next to uploadedFileName field.
-
Map with variable fileName and select Save Expression.
-
Select Edit Expression next to folderFileName field.
-
Map with variable folderName and select Save Expression.
-
The outputPath needs to be hard-coded:
- Open the expression editor.
-
Choose Save Expression.
-
Select Extract Data. In Input Parameters, next to documentPath open the Expression Editor.
-
Once the Edit Expression window opens, replace the value with:
"C:\\Users\\Public\\" + Step0.fileName
To check if the Expression is correct, click on Test button. If it is highlighted in green, it means the expression is correct.
-
Choose Save Expression.
-
Save your work.
- Go to the process tab Get Invoice Details. Select Extract Invoice Data and map the following inputs:
- Save your work.
You have now modified the project.
Continue to - Exercise 6 - Release and Deploy Process