I’ve been exploring solutions for fetching a static collection via a workflow when a user submits a form but haven’t found an up-to-date or clear answer. Here’s my use case:
- We use static collections with REST API sourcing (connected to Supabase) to benefit from SEO.
- When an Admin user submits a new post entry via a form, I want the workflow to fetch the updated static collection so the changes are reflected without manual intervention.
From what I understand, this might require triggering a “Sync REST API” action or using “Hooks to sync WeWeb cache: Sync All the Collection”, but I’m unsure how to implement this in the workflow.
Could someone guide me on how to set this up? Specifically:
- How can I trigger the static collection to fetch new data after a form submission?
- Is there a way to automate this process without requiring the Admin to manually click “Sync REST API” in the editor?
Any help or examples would be greatly appreciated!
Thank you in advance!