Document Viewer not working for target instance

Saroj Patel
Tera Expert

Hi

If i sending attachment from source instance to target instance via REST API , then in source instance document viewer are working fine means i am able to view png/jpg/pdf/ppt all without downloading it.

But in target instance if i click on view then 

1)for pdf =>it is downloading then i can view but requirement is without downloading it should be view

2) for txt file it is working good

3)for png/jpg after download attachment i can able to view accurate png file but if click on view then it is showing like this

find_real_file.png

4 REPLIES 4

Community Alums
Not applicable

Hi @Saroj Patel ,

Make sure plugin "ServiceNow Document Viewer" is activated. Unfortunately it is not available to admins, so you would need to ask ServiceNow to activate it for you.

 

Check this thread: https://community.servicenow.com/community?id=community_question&sys_id=39abbcb11bb23c90aefc11751a4bcbb4

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

no no its working fine if i attach anything but if receive any attachment from source instance using rest api then it is showing like this

 

but if i download that attachment and open then accurate file is opening

Maik Skoddow
Tera Patron
Tera Patron

Hi @Saroj Patel ,

my assumption is that some attachment data was not correctly transferred to the target instance.

Could you please use a diff tool and compare the original file with the file that has arrived at the target instance?

Kind regards
Maik

Hi Maik

can we just view the attached document in the form itself without clicking on view 

is there any way to achieve this functionality using any kind of script or any other way.

 

Thanks