The Zurich release has arrived! Interested in new features and functionalities? Click here for more

what is meaning of sys_idN?

Sachin G K1
Kilo Sage

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.

1 ACCEPTED SOLUTION

Abhijit4
Mega Sage

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

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

View solution in original post

6 REPLIES 6

Omender Singh
Tera Guru

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.

Hi Omender,

i dont think its correct. because its returning multiple sysid's . All are different.