Contentful logo

Contentful Community

Schedule publish from UI Extension

Hi

I have been searching around without any luck :frowning:

I created a UI extension that calls an external API that gives me some products that I store as JSON.

So far so good, but this API changes so I need to republish whenever it changes, it is also fine to schedule a time, but I need it to automatically call the API and then publish.

Hey, have you tried adding a webhook listening changes to the field? it could be a similar approach to: https://www.contentful.com/blog/2016/04/12/scheduled-publishing/