Customization for document viewer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2022 07:59 PM - edited 11-13-2022 11:05 PM
Hello there!
I have seen the document viewer attribute that enables preview of documents rather than downloading them but in the docs.servicenow.com it is mentioned :
"Document Viewer supports viewing various file types in the platform. The maximum document file size is 50 MB. To use Document Viewer, enable it at instance level and for the tables for which you want to use it." and when I tried to preview a 70MB document, it displayed a message something like "limit exceeded to preview so download instead".
Is there any possibility to increase this limit by some customization or it is only possible by ServiceNow team? If this can be done how do I do it?
Thanks in advance,
Athena.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2022 11:16 PM
Hi @Athena Mathews ,
Here the system property for that. You can increase its value to 70 or 80 from 50.
to navigate- type in application navigator- sys_properties.LIST - search for "com.snc.documentviewer.size_limit_mb" and change value.
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 12:37 AM
Hello @Gunjan Kiratkar ,
Thanks for replying!
I changed the value to 100 but still when I try to preview a document (nearly 72000KB) it is still displaying the following;
Also, is there anyway to make this work only for customerservice case table and not the other tables?
Thanks,
Athena.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 12:40 AM
Hi @Athena Mathews ,
Can you clear cache of instance by navigating to the cache.do from application navigator.
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 01:26 AM
Hi @Gunjan Kiratkar ,
I have cleared cache too, still displaying the same
I even added the document(72000kb) to another new ticket and tried preview but still the same