Assembling Main.xaml
It's time to run the process, but let's invoke the Download_Invoice.xaml
and Read_Invoice.xaml
workflows in the Main.xaml
file before running the process:
- In the
Main.xaml
workflow, create a variable namedisMail
of theboolean
type. Then, drag and drop theDownload_Invoice.xaml
workflow in theMain.xaml
workflow from the Project panel. - Click on the Import Arguments button and pass the
isMail
variable as the value to theout_isMail
argument:
- Next, drag and drop the
If
activity and pass theisMail
variable in Condition. If theisMail
variable value isTrue
, then you can start reading the invoices; otherwise, you will stop the process. - Drag and drop the
Read_Invoice.xaml
workflow inside the Then block of theIf
activity from the Project panel. - Below that, add a
Log Message
activity at the Info level and set the message to"All invoices...