Autopopulate categoryowner depends upon category and subcategory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 09:43 AM - edited ‎12-19-2024 04:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 01:59 PM
@sibasundarsahoo Replace this.getParameter()
with gs.getProperty()
or use gs.getRequest().getParameter()
. The u_category
and u_sub_category
variables are undefined in the script.
var category = gs.getRequest().getParameter('u_category');
var subcategory = gs.getRequest().getParameter('u_sub_category');
Please mark my answer correct and helpful if this works for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2024 01:42 AM
is my script is okay?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 07:03 PM
update as this
ga.addParam('sysparm_u_category', category);
ga.addParam('sysparm_u_sub_category', subCategory);
Script include
var category = this.getParameter('sysparm_u_category');
var subcategory = this.getParameter('sysparm_u_sub_category');
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2024 11:00 AM
its not working, can u pls help me how to do this?