Update an Item in Webflow overwrites all items

Howdy y’all,

I’ve got an operation which pulls an RSS feed and either creates or updates a CMS item in webflow depending on if a data store recognizes it or not. Everything about creating an item and filter seems to work but I’ve run into a problem where the process will take the first item from the RSS feed and update every subsequent item in my webflow CMS to match that first item.

Here’s an image of the whole scenario.

I feel that pulling the ‘item ID’ somehow needs something more to it?

Many thanks in advance!

You’ll need to use the “Get an Item” module first, so that you can merge the existing array of items with the new item.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

1 Like

Thanks for the reply @samliew.

I think I’m still missing something. Is it not possible to map the item field of the ‘Get and item’ module? The only option is to select a pre-exsisting item in that collection which still prevents me from updating whatever item gets routed to the ‘Update and item’ module.

Thanks.

Okay I got it figured. Thanks @samliew, you were right about what I needed to do I just was a bit daft in implementing it.

I had to add the ‘Get an item’ module before the ‘update and item’ but the part that tripping me up was that I needed to select the collection and item manually, and in order to map the item ID I needed to also add a ‘Get a collection’ module earlier in the scenario.

I’ve got my solution pictured.
Thanks again.

So where I thought I had figured it out I, in fact, had not. I’m still struggling with overwriting all exsisting CMS items with the first item from the RSS feed.

Could you expound a bit on how I would merge the existing arry of items with the new item? I presume I would use a function in the ‘Update an Item’ module but I’m a novice and am unsure about which function to use or how to use it.

Hey @samliew , could you possible explain more about how I’d merge the RSS array with the Webflow array at the ‘Update an item’ module?