The CreatorCon Call for Content is officially open! Get started here.

Look Up records

Darlene York
Tera Contributor

Good morning,

I am trying to do a lookup records in flow where if a requestor (requested_for) opens a catalog item (home use) I want to do a check and if the requested for has opened the same request in the past 12 months, the RITM will close incomplete.  Here is my setup, but its not working.

 

Action:  Look up records

Table:  sc_req_items

Conditions:  

Requested for is 1- Get Catalog requested for

Created relative before 12 months ago

Item.sys ID is sys id of the maintain item

 

If statement

Condition Label: Look up records is greater then zero

Condition Look up records count (from the set above) greater than 0 

Update requested item record Closed Incomplete.

DarleneYork_0-1761134309612.png

DarleneYork_1-1761134348183.png

Thank you

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Darlene York 

No need to hard-code sysId of Catalog Item

You can directly use the Requested Item Record -> Item in condition

Flow step looks fine

when it runs in flow context what's the output?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Darlene York 

No need to hard-code sysId of Catalog Item

You can directly use the Requested Item Record -> Item in condition

Flow step looks fine

when it runs in flow context what's the output?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Darlene York
Tera Contributor

Thank you, I will try that.