Query in Widget in SP portals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:01 AM - edited 01-02-2023 02:02 AM
In SP portals i need to Show the records of sn_customerservice_case and sn_customerservice_task records from task_time_worked.
so i used Add encoded Query to query the Records,
instead of using gr.addEncodedQuery('taskSTARTSWITHCS'); this encoded query how can i query the data?
in what other way can i query the data?
i no need to use add encoded query , i need to call from add Query();
@jaheerhattiwale can you help me in this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:11 AM
@devservicenow k You can use below query instead of the one you used.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:15 AM
You can use the following with addQuery() method:
gr.addQuery('task.name','STARTSWITH','CS');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 02:16 AM
For your reference, here's the link to the documentation of addQuery() that lists all operators: