Skip to Content Skip to Menu

[SOLVED] CB Auto Action

6 years 7 months ago - 6 years 7 months ago #303524 by Neandertaler
[SOLVED] CB Auto Action was created 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.
Last edit: 6 years 7 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
6 years 7 months ago #303533 by krileon
Replied by krileon on topic CB Auto Action
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 - 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.

6 years 7 months ago #303554 by Neandertaler
Replied by Neandertaler on topic CB Auto Action
Thanks!! That's the solution :-)
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum