I’m trying to create and update CMS items on webflow, and currently I’m able to create the first package of elements (2 items) and after that to update, but when I try to create a new item this duplicate what I already have on webflow.
Someone can help me please I already spent 1 week trying to solve this
Hi @sraponte91,
Could you share a little more about what you are trying to achieve? The scenario in the screenshot seems to run ok, so what is the issue? And why does it start with a HTTP request? Why would that be needed for Webflow?
Please, follow these steps when asking a question, and you’ll be more likely to get a helpful answer:
Give us a detailed explanation of what you’re trying to achieve
Tell us about any steps you’ve tried so far
Include screenshots of:
-
your scenario flow and setup (functions, mappings, variables, etc.)
-
module configurations and outputs
-
any error messages you are getting
Share the blueprint of the scenario you are asking a question about. (this does not contain any connection or personal information)
Henk
Certified Make Expert and Partner
Hey Henk thanks for your reply, okay the case is this, I’m having a website on webflow and I need to post some job positions that I have open, then the request is pulling the recruit crm list of jobs, with the webflow I’m comparing if i have that job created or not and with the router I would like to say if the job is not listed create the job and if is listed based just updated the job.
when I don’t have items on webflow it creates perfect the jobs, if I want just updates it works the problem is when I try to add a new job different to what I have it starts to create more items with the same content.
blueprint.json (60.4 KB)
Hi @sraponte91,
Based on the screenshot and the blueprint, all job positions that are found on Webflow continue to both filters after the router. Therefore, if a job position already exists, it is both created new (top route) and updated (bottom route)
You should change the filters of the router to pass bundles through the bottom route only if they already exist, and to the top route only if they don’t exist.
Cheers,
Henk
Hey thank you I tested it in that way based on the slug top if it doesn’t exist and the bottom if exists, and it is just updating the same item at the bottom twice.
blueprint(1).json (60.0 KB)
Hi @sraponte91
To ensure an item is created if they do not already exist, you need to add a filter before the “create an item” module. This filter should only pass if the total number of bundles is zero.
Sample workflow:
Regards,
Msquare Automation - Gold Partner of Make
Free Consultation | Live Implementation
Visit us here | Youtube Channel
That will not works for this scenario, because that will works if I don’t have items which I’m already able to do, the problem is when I already have item created and I need to add a new one in that point the number of bundles will be greater than 0, and I’ll need to create a new one then the conditional will not works. But thank you