Skip to Content Skip to Menu

What Auto Action conditional to use to see if user is member of a CBSubs plan

  • qedmrf
  • qedmrf
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
10 years 2 months ago #247951 by qedmrf
Hi,

I'm trying to set up an Auto Action to send an e-mail when a user modifies their profile, but only if they belong to a certain CBSubs plan.

I have set up:
Type: Email
Triggers: onAfterUserUpdate
User: Automatic
Access: Everybody
Conditional: ??? ...I'm not sure what to put in here to only send the e-mail if the user is part of CBSubs plan "Customer Access", which has a plan ID of 2.

Thank you in advance for your help!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #247955 by krileon
You'd need to use a CB Query Field to query for that information then condition against the query field. You could also set a CB field that is read only using CBSubs Fields then condition against it (note, won't work for existing subscribers). You could use a custom usergroup that the subscribers belong to and select it for Access (note, won't work for existing subscribers). Basically there's a couple of options.


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.

  • qedmrf
  • qedmrf
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
10 years 2 months ago #247958 by qedmrf
Thanks for your input. I do have a custom user group that the users were assigned to for that plan ... but again, what is the syntax to use that in a Conditional? I already tried (pure guesses at the syntax) like:
  • "[gid] CONTAINS 11" (which is the group ID)
  • "[cb_gid] CONTAINS 11"
  • "[cb:gid] CONTAINS 11"

I have no clue as to the syntax of this thing... I can't seem to find it documented anywhere. Am I missing something obvious?

Thanks again for your help.

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

  • qedmrf
  • qedmrf
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
10 years 2 months ago #247959 by qedmrf
If there is no easy way to use [gid], then I'll probably go with your suggestion: "You could also set a CB field that is read only using CBSubs Fields then condition against it", but if there is, I'd prefer to use the gid.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 2 months ago #247978 by nant

qedmrf wrote: I'm trying to set up an Auto Action to send an e-mail when a user modifies their profile, but only if they belong to a certain CBSubs plan.


Another option to do this would be to use the CBSubs CB Fields integration (see CBSubs documentation) and set a specific CB field to 1 when a subscription starts and back to 0 when it ends.

Then use this CB field to do your condition.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #248005 by krileon

qedmrf wrote: Thanks for your input. I do have a custom user group that the users were assigned to for that plan ... but again, what is the syntax to use that in a Conditional? I already tried (pure guesses at the syntax) like:

  • "[gid] CONTAINS 11" (which is the group ID)
  • "[cb_gid] CONTAINS 11"
  • "[cb:gid] CONTAINS 11"

I have no clue as to the syntax of this thing... I can't seem to find it documented anywhere. Am I missing something obvious?

Thanks again for your help.

You don't need to condition against the usergroup id. Just adjust the "Access" parameter as needed.


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