
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 03:15 AM
Hi ,
I want the below encoded query to be added in record lookup for my flow designer.
What is the syntax for adding encodedquery in lookup record -
Solved! Go to Solution.
- Labels:
-
Case and Knowledge Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 05:01 AM
I am updating it
return
"active=true^due_date<javascript:gs.beginningOfToday()^assigned_toISNOTEMPTY^parent.closed_by.managerSAMEASassigned_to"
Please mark my response as correct
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
‎03-28-2022 04:23 AM
Hi Raghu ,
not working like this.
Can we write script for lookup records , if yes , what should be the syntax.
Thanks,
Gaurav Tyagi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 04:32 AM
I already shared above
sharing again here
"active=true^due_date<javascript:gs.beginningOfToday()^assigned_toISNOTEMPTY^parent.closed_by.managerSAMEASassigned_to"
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
‎03-28-2022 04:47 AM
Hi Ankur ,the above script worked but after adding return to it it should be -
return "query" ;
Marking your answer as correct.
Thanks,
Gaurav Tyagi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 05:01 AM
I am updating it
return
"active=true^due_date<javascript:gs.beginningOfToday()^assigned_toISNOTEMPTY^parent.closed_by.managerSAMEASassigned_to"
Please mark my response as correct
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
‎03-28-2022 04:45 AM
Hi
Create glide record like below code... and change your encoded query according to urs and try it.
var gr = new GlideRecord('sc_task');
gr.addEnocdedQuery('active=true^short_descriptionSTARTSWITHtest');
gr.query();
while(gr.next())
{
return gr;
}
I hope it definetly helps you, please mark my response as correct and helpful.