Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lanuser88
Engaged Sweeper III

Looking to find a solution to build a dynamic filter for LS assets in Flowbuilder.

In my testing I used this in the delete asset template


"conjunction": "OR",
"conditions": [
{
"path": "asset.scan.last_successful_scan",
"operator": "SMALLER_THAN",
"value": "2025-11-05T00:00:00Z"
}
]
}

 

I want to make this dynamic so it looks for anything not scanned in the last X number of days. Doers anyone know if this is possible or how to do it? @Vicente_SC 

1 ACCEPTED SOLUTION
Vicente_SC
Moderator
Moderator

@lanuser88,

I moved this topic to a new thread because I think it’s an interesting one.

Your filter looks good. The only remaining step is to make the date dynamic, as you mentioned. In the recently added template “Create ServiceDesk request for critical vulnerabilities,” you’ll find an example in the first three steps. Basically, you’ll need to:

  • Get the current date (Get Current Date/Time).
  • Subtract X days from that date (Adjust Date/Time).
  • Reference that date in your List of Assets filter. In that step, select “Reference” using the grey button to the left of the Filter field.

Date reference.png

View solution in original post

2 REPLIES 2
lanuser88
Engaged Sweeper III

Works as advertised . Thanks for the feedback !

Vicente_SC
Moderator
Moderator

@lanuser88,

I moved this topic to a new thread because I think it’s an interesting one.

Your filter looks good. The only remaining step is to make the date dynamic, as you mentioned. In the recently added template “Create ServiceDesk request for critical vulnerabilities,” you’ll find an example in the first three steps. Basically, you’ll need to:

  • Get the current date (Get Current Date/Time).
  • Subtract X days from that date (Adjust Date/Time).
  • Reference that date in your List of Assets filter. In that step, select “Reference” using the grey button to the left of the Filter field.

Date reference.png

Forum

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now