How to read content of a DOC file

Shubhanshu Guh1
Giga Contributor

Hi,
Our need is to read content present in a Word attachment attached to a record and update the 'Comment' field with the content present in the Word attachment. The attachment may include images, the 'Comment' field is a HTML type field.

If this requirement has been done before, do share your views.

Used code to read values : https://gist.github.com/pmgupte/df835d6cdacf0345c2bc, but the variable returns 'unidentified'.

Thanks in advance!

1 ACCEPTED SOLUTION

check these links for alternative solution

Apache POI - the Java API for Microsoft Documents

How to parse an MS word document attachment into text - Developer Community - Question - ServiceNow ...

Regards
Ankur

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

View solution in original post

8 REPLIES 8

will check, thanks!

@Shubhanshu Guha 

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

Regards
Ankur

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

Hi Ankur Bawiskar, I have the same requirement as mentioned above. While I was trying to open this link, it was not working. Can you please provide any other solutions.

 

Thanks

Pavan Dileep

Hi @Ankur Bawiskar , Could please look into this.

 

Thanks 

Pavan Dileep