ServiceNow replaceAll doesn't work in scoped app
ServiceNow replaceAll doesn't work in scoped app apparently but fine in global scope
instead for scoped app use .replace(<string>/g)
All things ServiceNow... take a look at my channel: https://www.youtube.com/@cloudminus89
ServiceNow replaceAll doesn't work in scoped app apparently but fine in global scope
instead for scoped app use .replace(<string>/g)
String.prototype.replaceAll() was apparently added to JavaScript in ES2021, so it wouldn’t have been supported at all in ServiceNow prior to the Tokyo release. I do see it on the list of supported language features in the docs, but you would need to be in a scoped app (Tokyo or later) where you’ve explicitly enabled the ES2021 features.
ReplyDeleteI liked the way this article was written. The information about XuperTV APP feels balanced and easy to understand. Instead of repeating the same points, it focuses on different aspects of the application, such as usability, interface, and general functionality. Those details help readers build a clearer picture before exploring the app further. The article also encourages curiosity without becoming overly technical. More content comparing entertainment applications with similar features would make this website even more valuable for readers interested in discovering new platforms.
ReplyDelete