Skip to Content Skip to Menu

Automatic Connection building upon event attendance

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
6 years 9 months ago #300792 by timstohr
Hi Kyle,
I would like to program an auto action so that once a user participates at an event, a connection is established between all the people who also attend the event. Lets say we have a trigger that is triggered every time a user is joining an event (user A), then we have a variable that we are sending through the trigger about who is already attending the event (users XYZ).
I would like to establish an automatic connection between the User A and all users XYZ. The users would NOT be able to accept the request but the connection would be established automatically.

2) Lets say upon cancellation of participation (by organiser or by the user himself) there is another trigger and again a trigger with users XYZ. I would need all the connections to be undone in that case.

Any idea how to do that?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 9 months ago #300806 by krileon

I would like to program an auto action so that once a user participates at an event, a connection is established between all the people who also attend the event. Lets say we have a trigger that is triggered every time a user is joining an event (user A), then we have a variable that we are sending through the trigger about who is already attending the event (users XYZ).
I would like to establish an automatic connection between the User A and all users XYZ. The users would NOT be able to accept the request but the connection would be established automatically.

The Connection action supports a comma separated list of user ids. You should be able to use the below action configuration for this.

Global
Trigger: YOUR_CUSTOM_TRIGGER_HERE
Type: Connection
User: Self
Access: Everybody
Action
Users: [cb:parse function="implode" glue="," pieces="[VARIABLE_HERE]" /]

Should be able to leave the rest as default. I haven't tested the above, but it should take your array of user ids and implode it to a comma list of user ids. It maybe easier to just send the list of comma user ids and then you'd just set Users action parameter to that variable (e.g. [var1]).

2) Lets say upon cancellation of participation (by organiser or by the user himself) there is another trigger and again a trigger with users XYZ. I would need all the connections to be undone in that case.

This would need to utilize the user looping functionality. You'd need to use the same above usage except set User to Manually then for User Variable set it to the variable with your list of user ids. That'll loop each of them through the connection action to undo the connections from them to the list of users.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum