- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 06:30 AM - edited 09-25-2023 09:23 AM
Below client script code opens new record on user table in agent workspace UI but I also want to auto populate fields like first_name, department, title on the user form that opens in agent workspace UI
Currently, form opens but fields are not getting auto populated
var url = "now/workspace/agent/record/sys_user/-1/first_name=testing";
top.window.open(url);
How to do that ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 09:21 AM
Below client script code opens new record on user table in agent workspace Ui but I also want to auto populate fields like first_name, department, title on the form that opens.
var url = "now/workspace/agent/record/sys_user/-1/first_name=testing";
top.window.open(url);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 06:34 AM
Hi @Snehal13 ,
Please check this link: https://www.servicenow.com/community/developer-articles/auto-populate-user-details-using-ajax/ta-p/2...
Regards,
Badal Khojare
Community Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 07:02 AM
I want to open and not parse
below is client script code
var url = https://<InstanceURL>/sys_user.do?sys_id=-1&sysparm_view=Workspace&sysparm_query=short_description=testing&department=<sys id from script>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 06:39 AM
Hi @Snehal13
If possible can you share your code...!!
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 06:47 AM
Client script code below
var url = https://<InstanceURL>/sys_user.do?sys_id=-1&sysparm_view=Workspace&sysparm_query=short_description=testing&department=<sys id from script>