How to decode an Attachment(text/html;charset=UTF-8) coming from Third party
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2021 09:15 AM
Hello Everyone,
I have scripted REST API which I am using to fetch an attachment from Jira, the attachment is coming properly in the sys_attachment table but the content type is "text/html;charset=UTF-8" as a result the attachment content is showing some garbage value. Is there a way to decode the content in Servicenow?
Thanks in Advance!
Labels:
- Labels:
-
Integrations
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2021 10:02 AM
Hello
refer this link where you can see the script for how to decode and encode attachment content
Do mark my response as correct and helpful, if applicable
BR,
Harika