Hi,
I'm trying to manage some automated attachments of files to rows in Smartsheet. I've gotten to the point of retrieving the file from its source and am ready to upload it to a Smartsheet row via API. I also have this API request working in Postman.
Where I am struggling is when I try to implement this API request in Bridge using the HTTP Call function. I have replicated the structure of the call in Bridge from what I have working in Postman but I find that Bridge just (I assume) times out on the API call.
When looking at the run log all I get for the Smartsheet API call is "Stopped" after a 5-10 minute wait.
So, my questions are as follows:
- Has anyone got a Smartsheet API call working from Bridge using the HTTP Call?
- If you have, have you got the Attachments endpoints working to add a file attachment to something in Smartsheet?
- Is there any debugging or trouble shooting that I'm missing? I'm not aware of a way to see the logs for incoming requests from a Smartsheet point of view and the Run log in Bridge gives very, very little information.
Example of my request config:
URL: https://api.smartsheet.com/2.0/sheets/[StaticSheetID]/rows/[DynamicRowID]/attachments
Method: POST
Headers:
- Content-Disposition: attachment;filename="{{states.startstate.smartsheet.get_row.row.cells.FileName.value}}"
- Content-Length: [File Length]
- Content-Type: application/pdf
- Host: api.smartsheet.com
Body: Binary return from a previous HTTP Call that returns a file
I have also tried this with and without the Authorization header. Postman obviously needs the Authorization header with an API key. I have other HTTP Calls that seem to use connector Auth in Bridge so I have tried this call with and without this header with no difference in result.