This topic was automatically generated from Slack. You can find the original thread here.
Mohammed Zeeshan : Hey gang!
Been following Pipedream for past 6~ months but today i got hands on setting first pipedream workflow between Memberstack and Webflow.
New sign ups are stored inside Webflow CMS.
Progress:
Obtained Endpoint URL from Pipedream and connected to Memberstack to run HTTP trigger. This captures login email and user-id.
Created a live collection item in Webflow with user-id (obtained in the above step) as slug. help
Now i would like to update a field in Memberstack by passing it an item-id created by Webflow. Anyone know how to do that? Like creating a Member, Memberstack has other fields such as Updating/Deleting a member but it awaits an endpoint URL.
> Now i would like to update a field in Memberstack by passing it an item-id created by Webflow
What’s the trigger you’d like to run your workflow on here? Do you want to run the update when a specific event happens in Webflow?
Dylan Sather (Pipedream) : just to confirm, did you want this new logic to be a part of the original workflow (in steps 1 and 2) above, or a different workflow?
Dylan Sather (Pipedream) : Thanks, I misunderstood your original problem. Are you trying to update an item by ID? Is the issue that you can’t find the Webflow API endpoint for that?
Dylan Sather (Pipedream) : or are you trying to update the fields attached to a User? I’m not familiar with Webflow so just trying to understand the specific object and what the specific issue is that you’re encountering
Dylan Sather (Pipedream) : have you seen the docs on the Update Member API endpoint? Since the Memberstack API accepts an API key, you can add that as a Pipedream environment variable. Then, add a new Node.js code step and try modifying this code to update that hidden field in Memberstack:
const fetch = require("node-fetch")
fetch(`https://api.memberstack.com/v1/members/${your memberstack member ID here}, {
method: 'POST',
headers: {
'X-API-KEY': process.env.MEMBERSTACK_API_KEY // fill in the name of your env var here
},
body: JSON.stringify({
hidden_field_name: steps.webflow_create_live_collection_item.$return_value._id // reference the correct field name, but this value should reference the ID you want from the step above
})
}
Dylan Sather (Pipedream) : great! Yeah we don’t yet have Memberstack as an integrated app, which means we also don’t have actions like you’d find for other apps, but I added a ticket to track support for that here: [APP] Memberstack · Issue #686 · PipedreamHQ/pipedream · GitHub
Mohammed Zeeshan : Awesome! Memberstack has a very active community and they would definitely love pipedream support. Plus i would like to share this workflow with the folks there if there isn’t been one yet.