- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 11:44 PM
Hi Team,
How to send base64encoded attachment with multipart data format from ServiceNow to TOPDESK tool. Any advise with coding example will be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2025 08:00 AM
check these links and you will get some idea, please enhance based on the API team
Multipart/form-data attachment pusg using Rest API from Snow->Jira
Outbound REST - Multipart/form-data
REST API attachments Transfer to JIRA
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2025 11:46 PM
Do you have any screenshots ? 🙂
Building the multipart for TOPdesk is new to me. I am unsure on how the boundary part need to be built correctly with the file data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2025 12:41 AM
I complicated it with boundary etc... and did not note the RED text in the instructions...
1. create NEW "action". give it a name.
2. when action is created define INPUTS
When inputs is defined.
3. Define connection details. (not documented here on how to do this.)
NOTE: the "BASE URL:"
Note: a way of defining the resoource url part. (this is combined with the base url).
Note: "POST" http method.
4. Do not define header. it will not work if it is defined.
Note: no header.
Note: "Multipart".
Note: "File" AND contenttype and filename "from attachment".
Note: point out to the input defined in step 2.
OUTPUT add some output variables storing REST message results.
they can be used in the calling flow.
Save and "publish" the action.
testing:
create a flow that is triggered on insert "after" on the sys_attachment table.
then add the action created. test on a attachemnt and see the results.
a.
b.
c. press "steps" to see the actual data of the rest action results.