How to show only 2values in a list collector variable.

1_DipikaD
Kilo Sage

HI All,

 

I have a list collector variable which refers to question_choice table . I want to show only 2 records in that variable to select as choice. I have tried to with reference qualifier but still did not get expected result. Could you suggest me what should be my approach.

 

Thank you

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@1_DipikaD 

share your ref qualifier, seems you have not given it correctly

something like this should work

javascript:'sys_idIN' + 'sysId1,sysId2'; // give sysId of question_choice records which you wish to show

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Tai Vu
Kilo Patron
Kilo Patron

Hi @1_DipikaD 

What do you mean by "show only 2 records"?

Since we have the reference qualifier, we can always limit the choices available for selection. In your case, you can consider to have a query like "sys_idIN<sys_id1>,<sys_id2>" if there is no specific condition to retrieve only 2 records.

 

Cheers,
Tai Vu

Ankur Bawiskar
Tera Patron
Tera Patron

@1_DipikaD 

share your ref qualifier, seems you have not given it correctly

something like this should work

javascript&colon;'sys_idIN' + 'sysId1,sysId2'; // give sysId of question_choice records which you wish to show

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader