Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to decode an Attachment(text/html;charset=UTF-8) coming from Third party

Anish8
Kilo Contributor

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!

1 REPLY 1

Harika Bhupathi
Giga Guru

Hello @Anish 

 

refer this link where you can see the script for how to decode and encode attachment content

 

https://community.servicenow.com/community?id=community_question&sys_id=68ef47a5dbdcdbc01dcaf3231f96...

 

Do mark my response as correct and helpful, if applicable

 

BR,

Harika