Skip to main content
Question

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

  • February 7, 2022
  • 2 replies
  • 335 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. 

Did this topic help you find an answer to your question?
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

Troy Tessalone
Forum|alt.badge.img+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

 

 


  • Author
  • Beginner
  • 1 reply
  • February 8, 2022

thank you!