You can send files captured by Mapsly forms back to your Smartsheet rows or sheets as attachments. To do that:
1- Add a file field to your form:
In our case we will select "Image" as the allowed file type:
2- Configure Invoke URL
Now we will configure the Invoke URL action that will send your Mapsly files back to Smartsheet. In this example, we will cover the case with having just one file.
Go to Actions > click on + > choose Invoke URL
In the Invoke URL fill in the following:
Action Name
Method: POST
Content Type: POST MULTIPART FORM
Target URL:
βTo attach a file to a row in a sheet:
βhttps://api.smartsheet.com/2.0/sheets/{{record.__objectApiName}}/rows/{{record.id}}/attachments
βTo attach a file to a sheet (without attaching to a row):Header parameter: Authorization with the value Bearer Your_API_Key, where Your_API_Key is your Smartsheet API key
If you are not sure where to get the Smartsheet API key, please visit this article.Form parameter: file with the path to your file field in Mapsly
{{ GetFileContent("#{form.fields.file.value[0]}") }}Form parameter: person_id with the ID of your record as the value (here you can use deal_id, org_id, product_id, activity_id too)
After submitting the form you will see your file appear as an attachment to your row:
If you have any questions or need help with configuring your Smartsheet automation contact Mapsly support team 24/7 by chat or email at [email protected], we'll be happy to help.
β