Servicenow

HARSHA GOWDA R
Tera Contributor
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>

If i use this external library in the particular widget.In future it won't be any problem right?

3 REPLIES 3

Yashsvi
Kilo Sage

Hi @HARSHA GOWDA R,

Using an external library like xlsx.full.min.js in a ServiceNow widget should generally work without issues as long as you consider a few things:

  1. Performance and Compatibility: Ensure that the library does not conflict with existing libraries or components within ServiceNow. Testing the widget thoroughly after integrating the library is crucial to identify any performance impacts or compatibility issues.

  2. Security: Verify that the external library is from a trusted source (like the CDN you mentioned). ServiceNow has guidelines on using third-party libraries securely, so make sure the library doesn't introduce security vulnerabilities.

  3. Versioning and Updates: Keep track of updates to the library. Sometimes, updates can introduce changes that affect your widget's functionality. It's good practice to periodically check for updates and test them in a development environment before deploying them to production.

  4. License: Ensure that the library's license permits its use in your application. Some libraries have specific licenses that may require attribution or restrict commercial use.

Thank you, please make helpful if you accept the solution.

@Yashsvi can you please check on your answer before copy/pasting AI answers that don't answer the question that was asked? 

 

@HARSHA GOWDA R I see a lot of question coming from you, related to external libraries. What is your use case that you have to apply this/these libraries? As answer to your question: if this is a custom widget, there won't be any problem, because ServiceNow won't touch it. If it's an OOB widget, it will be an issue, because it will be a skipped change in the future.

Next to that: using external libraries can be a security and compliance risk. Ask yourself really why you need this library and inform your client that you are using an external library and ask their permission (written!) to use it. You don't want any compliance issues to end up on your plate. It also needs to be maintained. Who is taking care of that? What if a ServiceNow upgrade blocks the usage of that library? What if the library gets updated and changes the behavior in ServiceNow? 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Anurag Tripathi
Mega Patron
Mega Patron

It will be an issue especially with security and compliance for your Client .

Almost all companies will block use of external ./ unauthorized APIs

 

Other downside would be maintaincence , since it is external it may change without any intimation and will impact whatever way you use it today.

-Anurag