Does anyone have any experience connecting chargebee to discord to auto-assign roles to users based on subscription? Any pointers would be appreciated.
Hi
I think that you’d need to start with a couple of Zaps, one using the Chargebee trigger New subscription and one for Subscription Details Updates. For the last step in the Zap, you’ll need to use a Discord action that adds the relevant user role, but you’ll need to add a step (or maybe two) in the middle of the Zap, to tell the Zap which role to add to the user based on the subscription details. To do that, you’ll need to create a table that matches the subscription to the relevant role, you can create the table in an app like Google Sheets or you can use the Formatter by Zapier Lookup table function. If you have quite a few different roles and/or change the roles on a regular basis, I’d recommend using a Google Sheet as it’s easier to update.
When you create your table, you’ll need the name of the subscription (as it comes through from the Chargebee trigger) in one column and the ID of the discord role in the second column. You can find the ID of the role by looking at the roles in the dropdown field in the Zapier Discord Add Role action:
So, overall you Zap will likely look a bit like this:
- Subscription updated in Chargebee
- Find user in Discord
- Lookup table (either using Formatter or use a lookup row step in Google Sheets)
- Add role to user
As I mentioned, I’m guessing that you will also want to have a Zap that will account for New Subscriptions too.
I hope that helps!
Thanks a lot! I’ll try this out, hopefully it works!
I was able to successfully set up steps 1, 3 and 4 (from the advised steps below). However, I was unable to setup step 2 - Find user in discord. Could you please advise more on setting up this step? The aim is to automatically find a user on discord once their subscription has been updated or a new subscription has been created on chargebee. My question is, what value should be entered on step 2 Zap (Find user in Discord) to successfully setup this step?
- Subscription updated in Chargebee
- Find user in Discord
- Lookup table (either using Formatter or use a lookup row step in Google Sheets)
- Add role to user
Hey
In the meantime, I’ve added your vote to this feature request. Should it become possible or we have any updates, we’ll share them on the thread I linked you to. Sorry for the bummer news but if you come up with any cool workarounds, we’d love to have you come back and share! I know it would benefit so many others running into the same limitation.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.