How to copy and paste query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 04:36 AM
We can copy the query by using "copy query", and get the following sample query.
active=true^u_codeLIKEOPE
Is there any way to paste this query into another instance?
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 04:41 AM
Hi,
you can do this using sysparm_query
1) visit the table.list
2) then in URL do this
/incident_list.do?sysparm_query=active=true^u_codeLIKEOPE
OR
copy the entire URL and just change the instance name and it would take you to the table with that filter condition; provided both the instances have same table and field name
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
‎06-18-2022 06:53 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
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
‎06-17-2022 04:42 AM
Yes it should be fine if you apply to same table or any other table that as active & u_code field
You need to use .addEncodedQuery('paste copied query') instead of .addQuery()