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 01:29 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 02:23 AM
Just leave a space is fine.
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
‎12-04-2017 04:08 AM
Hi..
Spaces not working
Regards,
Roopa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2017 05:17 AM
share your query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2017 11:20 PM
approval.addQuery('wf_activity.name','IN','Level_2_Group_Approval,Ontrack_Internal_P4DTG_L2_approver');