How to fetch the attachment file(.doc/.pdf) content in a string . (Not in base64 format)

ANINDYA SUNDAR
Tera Contributor

Assume that a word file has attached with a Incident. I need to get those content has written in this attachment in a actual string not in base64encod version.  

4 REPLIES 4

ANINDYA SUNDAR
Tera Contributor

Amit Verma
Kilo Patron

Hi @ANINDYA SUNDAR 

 

You can refer to GlideSysAttachment getContent API to achieve this. https://docs.servicenow.com/bundle/vancouver-api-reference/page/app-store/dev_portal/API_reference/G...

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma

Ankur Bawiskar
Tera Patron

@ANINDYA SUNDAR 

you can read and print content for simple files such as text, csv etc

Not possible for doc, docx, pdf etc

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Not applicable

Hi @ANINDYA SUNDAR , 
Did you find any solution for file type doc and pdf