- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 02:14 AM - edited 01-10-2023 03:11 AM
Hello Guys
I Have a Requirement like when user click on an URL then the Value of parameter will in a string field.
So this is my business rule :
Result is coming but is there any out of box function that can help in client script then please help me with it.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 02:21 AM
you can get url parameter value directly inside onLoad client script
Example: you enhance it further from your side once you get value in client script
var gUrl = new GlideURL();
gUrl.setFromCurrent();
var ref_data = gUrl.getParam("sysparm_query");
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 02:21 AM
you can get url parameter value directly inside onLoad client script
Example: you enhance it further from your side once you get value in client script
var gUrl = new GlideURL();
gUrl.setFromCurrent();
var ref_data = gUrl.getParam("sysparm_query");
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 03:00 AM
Thanks Ankur
Is there any other way to do by using Business rule ?