I want to add users to a newsletter with an auto action upon OnCPayUserStateChange - but they should only be added when the state is changed to suscribed to the members plane - how do I set this condition in the auto action - I believe i must use Value -.but which custom value to test against ?
You should be able to just use the CBSubs AcyMailing integration for that. If you still want to use CB Auto Actions you can use the below to run behavior on subscription activation and deactivation.
Plan Active Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody Conditions Condition 1
Field: Custom > Value
Custom Value: [var3]
Operator: Equal To
Value: PLAN_ID_HERE Condition 2
Field: Custom > Value
Custom Value: [var2]
Operator: Equal To
Value: A
Plan Expired Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody Conditions Condition 1
Field: Custom > Value
Custom Value: [var3]
Operator: Equal To
Value: PLAN_ID_HERE Condition 2
Field: Custom > Value
Custom Value: [var2]
Operator: Not Equal To
Value: A
Replace PLAN_ID_HERE with the plan id of the plan you want to act on or remove the condition to act on all plans.
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.