Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Syntax for addquery(' ' , 'IN', ' a, b')

Not applicable

Hi all,

Could u help me with correct syntax for addquery(' ' , 'IN', ' a, b')

Acually i want to query like if the wf activity is L1 approver or Wf activity is L2 approver.

I tried below but not working ..

approval.addQuery('wf_activity','IN','Level2GroupApproval,OntrackInternalP4DTGL2approver');

Regards,

Roopa

21 REPLIES 21

Not applicable

Hi Roopa,



Try this


approval.addQuery('wf_activity.name','IN','Level2GroupApproval,OntrackInternalP4DTGL2approver');



If this is not working. Can you explain on which table you are trying to run the query.


Just leave a space is fine.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Not applicable

Hi..


Spaces not working




Regards,


Roopa


share your query


Not applicable

approval.addQuery('wf_activity.name','IN','Level_2_Group_Approval,Ontrack_Internal_P4DTG_L2_approver');