I’m creating a local business directory website and I want business owners (the customer of my platform), who have user accounts on the platform, to be able to update the details of their business listings, stored as CMS items.
Each business owner’s user account corresponds to a business listing stored as a CMS item - and they are linked together using a custom field on the business listing CMS item called ‘linked user ID’, which is equal to the native user account ID supplied by Webflow.
I want to use a flow to update the business listing CMS item whenever a custom field (e.g. business name) is changed by the business owner on the /user-account page. Here’s a screenshot of my flow:
The first step uses a webhook to receive the user account data whenever it is updated and works fine.
The second step searches the CMS items for the correct item with a ‘Linked user ID’ of the same value as the ID of the user account that has been updated.
Unfortunately the flow is failing at this point every time:
Does anyone have experience with this problem? To me, the flow is quite simple and I can’t see where I’ve gone wrong.