You could check with a get action event, if the user already has an account:
And if it’s the case, you run a path where you add this user to a group using a put action:
You could check with a get action event, if the user already has an account:
And if it’s the case, you run a path where you add this user to a group using a put action:
Awesome Krischan ! Thanks for your quick reply ! I’m trying it right now.
The Get part seems to work.
But I have an issue on the Put action :
1 / Can you tell me which Content-type do I have to put in header ?
(I guess I still add my API Username and API Key)
2/ On the URL of the Put Action, do I have to use the group ID (in number, like 110 in your example), or can I use the name I can get on the URL of the groupe ? (like “course-A” for example)
I tried to use the Name of the groupe (I don’t know where can I get the group ID) and it doesn’t seems to work.
Thanks !
Content type: multipart/form-data
No, I guess you have to use the group ID. You can get it eg. from the json file: https://meta.discourse.org/g.json
Awesome, with this content type + group ID, it seems to work !
Thanks for your quick help Krischan!
Hi Krischan !
Do you know if there is a way to notify the user by email to tell him he has been added to a group (with the Discourse API on Zapier) ?
I know it’s possible to tick a box, when we manually add email to a group on Discourse.
It could be good if I could trigger an email when my Zap is adding them to a new group.
Thanks !
Thanks for your reply @Krischan !
Do you see a quicker way to notify the user ? (It’s ok if it’s a basic message from discourse, just like the one the user receives if I tick the checkbox “notify the users.”
Your solution is great, but as I have a lot of groups and automations, it could be great if I could just add “one” data type, for example to just “activate” the notification, instead of creating 30 new zap
Sorry, I haven’t done this yet. But maybe this post can help you:
Thanks for your reply Krischan !
I will check that
Hi guys
Do you know if there is a way to Remove a member from a group, using the same logic explained upper ?
I noticed the API has a way to Delete group member : Discourse API Docs
But I’m not sure how to use it on Zapier