Send Files to External API
Titan Flow equips your business with the benefit of receiving files as an input parameter to be pushed to the storage service provider of your choice.
- Titan Flow allows your product to send multiple files to various preferred storage services such as Salesforce, an external storage system, a custom API Service, and more.
- Titan allows for multiple files to be uploaded to the web project.
How to Video
Video Coming Soon!
How to Guide
If you have a Web project where a user can upload file/s, it could be pushed to Salesforce or to external storage (such as Amazon S3, Google Drive, or OneDrive) or sent to an external custom API using Titan Flow.
If, for instance, you have a file upload input field on a web page and you have a button that invokes a Titan Flow that will receive the uploaded file and push it to your selected file storage integration or your custom API service.
Create a Titan Flow project that will receive files as an input parameter such as storing your file to your preferred storage service or external API service.
Add the Flow to a button
- Navigate to Titan Web Application and select the expand (+) button next to the settings icon. A list of elements will show.
- Choose the Button element option from the list. Add a Button that will invoke an action.
- Drag and drop the Button element option to the canvas. The Button Settings screen opens when you select the Button settings Gear icon.
Add input fields, like Upload a file.
- Choose the On Click action icon for the button. The On Click action screen opens.
- Select the + icon next to Start. The Add Node screen opens.
- Under System Actions, choose the Flow option.
- Click the Next button. The Add Node/Flow screen opens.
- Navigate to the Select field to open the drop-down list.
- Select the Flow project you created. This Flow will be activated. The Configure Parameters screen opens when you select the Configure Parameters button.
- Configure the custom parameters that you set up in Flow. These parameters will be passed to the web project. Set the Static or Field parameters.
- For Static, enter the parameter name, for instance, a RecordID.
- For Field, select from the drop-down list. These are the dynamic parameters of the project.
Make sure to map your file upload input fields to the Titan Flow file custom variables in this example.
Add the dynamic fields for file 1 and/or file 2. These map to the file input fields on the web project.
- Configure the required parameters.
- Click the Apply button.
- Click the Next button.
- If necessary, type a unique name in the Tag field and click the Insert button.
- Click the Apply button.
The Flow will be invoked when the user uploads files and clicks on the button.