[SOLVED] CB Auto Action

9 months 2 weeks ago - 9 months 2 weeks ago #303524 by Neandertaler
I like to track changes made on CB profile fields. So I set a trigger on onBeforeUpdateUser and like to Create an activity with theme profile.[user_id].update and a message: "before. [var3_cb_xyz]<br>after: [var1_cb_xyz]"
The first time I changed my user field xyz from "A" to "B" I can see the new activity record created with message "before: A<br>after: B".
BUT: When I changed the user again from B to C, I only see one activity with "before: B<br>After: C". This activity has the same ID like the previous one, so even if I said Modus=Activity, Method=Create, it only creates once and after that it updates this activity.
Is this a bug or planned feature?
Because I liked it similar to the login script you provide in the system actions, with tracks all logins.
9 months 2 weeks ago #303533 by krileon
Set the "Load By" parameter to "None". By default it loads by asset only, which means if it finds an activity entry with same asset it just updates that activity entry instead of generating a new one.

Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
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 EST to 4:00 PM EST. 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.
9 months 2 weeks ago #303554 by Neandertaler
Thanks!! That's the solution :-)
The following user(s) said Thank You: krileon
Moderators: beatnantkrileon
Time to create page: 0.372 seconds
Facebook Twitter Google LinkedIn