Question

How to see if a Webflow Collection already contains an item?

  • 7 February 2022
  • 2 replies
  • 270 views

Hi, I have a Webflow Collection with a username field and some other fields. How do I do the following:

  1. First, check if a username already exists in the Collection. If it already exists, update some fields for the username.
  2. If not, then create a new entry in the Collection.

In other words, how can I check what are all the items in a Collection? do i need to use Zapier Webhook for this?

 

thank you. 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +14

Hi @thercyl 

You’d likely have to use the Webflow CMS API: https://developers.webflow.com/#get-all-items-for-a-collection

App APIs can be used in Zaps with the Webhooks app as an action step: https://zapier.com/apps/webhook/help

NOTE: You’ll likely also need to use a Code step to handle/filter the array of line items returned: https://zapier.com/apps/code/help

 

 

thank you!