- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2022 07:45 PM
Dear Experts,
One of our catalog item has a mandatory requirement of attaching a file while submitting the service request. I have problem doing it through the REST API using python. Could you please guide me or point towards a doc which tells how to attach a file while submitting a service request itself through REST API. Thank you.
Regards,
Ramu.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 12:31 AM
Hi,
I don't think that's possible using the Cart API.
You will have to make another API call and use Attachment API and pass the RITM sysId there.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2022 10:34 PM
Hi check the below links
https://community.servicenow.com/community?id=community_question&sys_id=6b30cf61db98dbc01dcaf3231f961963
https://community.servicenow.com/community?id=community_question&sys_id=dbdfd9fa1bd50014ada243f6fe4bcbfa
https://docs.servicenow.com/bundle/sandiego-application-development/page/integrate/inbound-rest/concept/c_AttachmentAPI.html
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 12:24 AM
Thanks Harish.
Unfortunately, All the docs talk about attaching the file to an existing record with a sys_id . In my case, I need to create an RITM ticket with attachment. Without the attachment, I cannot submit the order. Please help.
Regards,
Ramu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 12:31 AM
Hi,
I don't think that's possible using the Cart API.
You will have to make another API call and use Attachment API and pass the RITM sysId there.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 12:51 AM
Thank you, Ankur.