SNC.regex is invalid in scoped application
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2022 05:20 AM
Hello folks,
I am trying to access SNC in scoped application -
Code -
var reg = new SNC.Regex('/\\$\\{(.*?)\\}/i');
var match = reg.match(<htmlString>);
Error -
Invalid object in scoped script: [object SNC]
Please suggest how I can use SNC in my scoped application
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2022 05:23 AM
Hi @Shalini32 ,
Check below thread :-
SNC Regex API Throwing Exception in Scoped Application
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2022 05:37 AM
Solution mentioned is giving me null
Is there any way to use SNC in scoped apps?