Hi Paul, thank you for suggesting this. Our team is planning to have this feature in the near future.
Any update on this? I have this use case to be able to upload attachments to servicenow records.
Is this built into the workato product somehow? If so can someone send me link to its documentation.
If not, Paul, would you mind sharing your recipe?
Method: HTTP POST
Request URL: https://[[serviceNowInstanceName]].service-now.com/api/now/attachment/file?table_name=[[moduleTableName]]&table_sys_id=[[sys_id_of_destination_record]]&file_name=[[name_of_file]]
Request Body: Is the raw file contents.
Response body from servicenow will be something like,
"sys_updated_on": "2017-02-10 22:34:20",
"sys_created_on": "2017-02-10 22:34:20",
So take the following example,
I'm posting to an instance called, TestInstance into the Incident table against an incident that has a sys id of 998877665544. You would post to the following url using an admin account,
Request URL: https://testinstance.service-now.com/api/now/attachment/file?table_name=incident&table_sys_id=998877665544&file_name=fileName.jpg
I created a callable recipe that takes all the parameters and handles the post, that way you can call it from a myriad of other recipes.
What connector are you using or can we use to download a file? I am trying to download a file from Google drive and then putting the file as attachment to a record on SNOW table. I am using Files By Workato/ Download file from URL connector to get content. But somehow the content is not downloaded fully. So I see an attachment on SNOW record, but the file cannot be opened.
Send us a ticket, we will try our best to assist you with your problem
ServiceNow Attachments - Add Ability to Add Attachments
I'd like to request a feature.
The service now connector doesn't appear to allow for me to create an attachment in a record. We are attempting to post an MMS media image to an incident and ServiceNow does support post actions,
However, it doesn't appear that I can accomplish this through the base app connection.