Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Syntax for flow designer record lookup script

Not applicable

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 -

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

15 REPLIES 15

Ankur Bawiskar
Tera Patron

Hi,

copy the query and use in that script

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Not applicable

like this -  " my_query" ;

or like this - my_query 

Please do let me know.

 

Thanks,

Gaurav Tyagi

 

Hi,

you can directly form the query condition in Condition

why to use script

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Not applicable

BECZ i am not getting one condition in the conditions , which is complex ,so though of writing via script.

parent > subject person > line manager is same as assigned to of task.

need to achieve this.

can u provide me correct syntax to write script for conditions in lookup record.

Thanks,

Gaurav Tyagi