- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 01:47 AM
Hi,
I have a request table and request_item table. The request_item table is coming as a related list in the workspace. I want to create a related list action is the request_item table called upload and when i click on that it will basically redirect to a new form where the request number from the request table will get auto populated in the new form and there will be an attachment field which will need to be mandatory. Can somebody please provide the script to do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 07:51 AM
try this
function onClick() {
var url = 'https://emcitizendev.service-now.com/x/iem/tqa-workspace/record/x_iem_tqa_work_request/cf0f63f31b6f96103df95314604bcbb9/params/selected-tab-index/1/sub/record/x_iem_tqa_work_request_items/-1_uid_1/params/query/work_request_number%3Dcf0f63f31b6f96103df95314604bcbb9/extra-params/query%2Fwork_request_number%3Dcf0f63f31b6f96103df95314604bcbb9%2FparentTable%2Fx_iem_tqa_work_request%2FparentRecordSysId%2Fcf0f63f31b6f96103df95314604bcbb9';
open(url, '_blank');
}
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
02-18-2025 08:00 AM
Thank you for marking my response as helpful.
I believe I have answered your original question.
Please mark my response as correct and close the thread and the discussion can still continue on this.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader