Auto Action. Objects in scope. Code type

10 years 4 months ago #237531 by inet2800
Can someone please tell me what objects are in scope for CB Auto Action Type:Code?


Clearly we are newbies in CBPro and CBSubs, if I can get pointed to some docs, that would be great.

Going through the forum I see code such as $user = CBuser::getUserDataInstance( '[user_id]' ). So, I see the CBUser is there, but what else is available?

We need to integrate to an external platform to enroll and cancel paid memberships. Memberships are monthly until canceled. (Client requirement).

Thank you.

Please Log in to join the conversation.

10 years 4 months ago #237555 by krileon
Replied by krileon on topic Auto Action. Objects in scope. Code type

Can someone please tell me what objects are in scope for CB Auto Action Type:Code?

No objects are. It's self contained for security purposes. If you need user data you need to use substitutions, which it will parse before executing your code.

Clearly we are newbies in CBPro and CBSubs, if I can get pointed to some docs, that would be great.

There is no documentation for CB Auto Actions as it's just a tool and what descriptions it needs are provided on the right of each input.

Going through the forum I see code such as $user = CBuser::getUserDataInstance( '[user_id]' ). So, I see the CBUser is there, but what else is available?

Anything you want. It just executes whatever you supply as PHP using either eval or create_function.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.244 seconds

Facebook Twitter LinkedIn