Hey all -
I finally got the formatting and processing right for this action and now it won’t respond in an actual zap.
It does a PATCH call to the Webflow CMS API to update an object based field. I’m just passing it text (urls of images) so there is no upload lag (unless I don’t understand how that quite works) but the images are super light either way.
Test calls from the Platform UI execute just fine and very fast. Updates are showing up in Webflow as expected.
const wf_multi = l];
const imgary = bundle.inputData.images;
for (let link in imgary) {
wf_multi.push({url: imgaryilink]});
}
const options = {
url: `https://api.webflow.com/collections/${bundle.inputData.collection_id}/items/${bundle.inputData.item_id}`,
method: 'PATCH',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': `Bearer ${bundle.authData.access_token}`,
'Accept-Version': '1.0.0'
},
params: {
'live': true
},
body: {
'fields': {
'images': wf_multi
}
}
}
return z.request(options)
.then((response) => {
response.throwForStatus();
const results = response.json;
// You can do any parsing you need for results here before returning them
return results;
});
If I try to use the action in a Zap, though, it times out.
I’ve been digging through the pages I can find on help to diagnose but I’m coming up short. Any thoughts? Thanks :)