Webflow update items in collection

Hello,

I have a scenario where I send data from the server to Webflow CMS. It is a real estate offer. I have managed to get this flow working, but I am unable to figure out how to update the items of collection. I suppose the flow could look like this:

Take an array of properties from the server and properties already existing in Webflow and compare their IDs. If the property ID from the server would be present in Webflow, then an update would be performed. If the property ID from the server did not exist in Webflow, the property would be uploaded.

Could someone advise me how I should set up this flow? I suppose it would mainly be a matter of setting up the filter correctly.

Thank you!