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

This should be an easy one....

I have a CSV of IP's that I am looping through to do an Asset Lookup.  If the Asset is found, I want to edit the asset. If the asset was not found, I want to skip to the next item.  What is the branch logic for 'exists'?  

 

flowb.png

Is there a way to do an If TRUE, Then Update based on the Asset Lookup?

2 REPLIES 2
Vicente_SC
Moderator
Moderator

By filtering the List of Assets action using the current IP item in the loop, you can avoid the second Loop and the branch action. If you want to reference a previous step in your filter, remember to change the Filters field to "Template" (the grey icon at the left of the field) and click on the + icon to add your reference.

Filter Assets by IP.png

 

This workflow does not consider duplicates. So if you have 2 assets with the same IP, only the first one will be edited. If you want to edit all the assets with the same IP, then you still need to add a second Loop, but in this case, it won't loop over all the List of assets, only the assets with that IP.

In the upcoming release, we’re introducing a new action called "Match Assets". This action lets you quickly match a list of external assets against your Lansweeper assets and instantly see which ones match or don’t. This makes the process even simpler than before. Stay tuned!

Esben_D
Lansweeper Employee
Lansweeper Employee

You might need two loops. The first loop will go through your CSV. Once that loop starts and selects the first IP address, the logic will then need to fetch the list of assets, and loop through all of those so it can check whether that IP address from the CSV is also in an asset.

 

A possible issue that you might encounter though is that this flow might take a long time, depending on how many assets and IPs you have in your CSV. Since for every IP it will go through every single asset to try and get a match.

@Vicente_SC this might be an example of where the 15min execution limit is an issue

Screenshot 2025-09-24 094911.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