Filter OR condition (Encoded Query)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 12:08 AM
Everyone in the community!
Always I am indebted.
I have added the following refinement settings to the Query Parameter of the Scripted API.
If a specific character string is included in the Short description of Incident,
There is a requirement to extract.
Set the following filter conditions from the Incident list
Get the following query from Copy Query and add it to QueryParameter
short_descriptionLIKEATF^ORshort_descriptionLIKETEST^ORshort_descriptionLIKESAP
What I was curious about was that this query contained a short_description every time.
Let me check the following 3 points
- As you add query conditions, this query will get longer, Is there an upper limit?
- Also, if there is an upper limit, is it possible to reduce the number of characters by omitting short_description?
- Will the query fail if the limit is exceeded, or will the query be executed only for the reduced part?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 01:49 AM
Hi,
I doubt you will find any documentation around this in docs regarding the max length
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 01:54 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 02:35 PM
Hi,
Sorry for coming in late. My notifications are coming in over 3 days late.
Not fully understanding the question. Is the question about trying to implement "sysparm_query" parameter in table API in scripted API?
If so, why not just use table API? Scripted API shouldn't have to query using encoded query. It should be more business focused API and not a general table query.
Scripted API can have finer ACL security constraints to limit API to certain condition. Allowing encoded query to be passed seems to be defeating that purpose.