This article describes how you can use the file upload activity. In this example which is taken from the customer registry app we create a workflow where you can upload documents that are connected to your customer. In screen recordings you can also see a screen recording of how we created the datamodel for this File Upload activity.
Create a new workflow. Name it Customer: File Upload and select root entity Customer. And search and add the Upload File Activity.
Double-click the Upload File Activity and add the following info.
Add the create entity activity and double-click it. Name it Create DocumentData and select Document Data as entitytype. On the property data select value Upload File Activity > File Data
Add another create entity activity and double-click it. Name it Create Document. Select Document as EntityType. Property selections:
Customer select Start > Rootentity
Data select Create Document data > Entity
Filename select Upload File Activity > File Name
FileSize select Upload File Activity > File Size
Add a commit context activity after the Create Document Activity and add a Cancel Workflow Activity to the Upload File Activity which has a criteria Dialog Result=False
Create a Command and Save Workflow.