- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 12:26 AM
Hi all,
What does below statement returns? what is meaning of sys_idN
return 'sys_idIN' + ccList;
Note: ccList: its an array consisting of sys_id's.
Thanks in Advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 12:29 AM
Hi Sachin,
In short it represents encoded query. The above script is generally used at advanced reference qualifiers. It means whatever sys_id's exist in 'ccList' variable, those many records can be entered/selected in that reference field.
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 12:31 AM
Hello Sachin,
At a high level, what you are doing is creating a dynamic reference qualifier that you are building with that javascript.
sy_idIN is the query that checks the current sys ID and sees if it is IN the following array.
I hope it helped. Mark correct if it solves your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 12:52 AM
Hi Omender,
i dont think its correct. because its returning multiple sysid's . All are different.