Syntax for addquery(' ' , 'IN', ' a, b')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 01:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 02:20 AM
Glad it helped.
Can you please mark my answer as correct to close thread?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 04:06 AM
I m not getting option to close the thread...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 05:45 AM
You have to set it as a question.
Should be at the top or right-hand side.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 10:17 PM
Sorry, while creating only i need to set as question... now its not giving me option.. next time i post as question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 02:22 AM
no worries about the spaces
you can still use it like following:
approval.addQuery('wf_activity.name','IN','Level 2Group Approval,Ontrack Internal P4 DTG L2 approver');