Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Auto Actions - sending emails after cb_field edits

11 years 7 months ago - 11 years 7 months ago #223808 by philiplardner
Hi,

I would like my website to automatically send an email to one or more email addresses every time a Manager or Administrator edits specific (non-user-editable) fields in a user's profile. Ideally I would like the email to include the name of the Manager/Administrator who performed the edit and the values/content of the fields before and after editing. These emails would form an important security paper trail for data auditing. Is this possible with Auto Actions?

Alternatively - an Auto Action that writes a record or log to the database recording the same information.

Thanks,

Phil.
Last edit: 11 years 7 months ago by philiplardner.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago #223831 by krileon

Is this possible with Auto Actions?

Yes, simply use an Email action and set the Access to "All CB Moderators" then configure the email however you like. You'll want to use the after profile update trigger for profile updates. You could then use conditionals to check if a certain field changed if you only want it sent on a field change (e.g. [cb_myfield] Not Equal To [var3_cb_myfield]).

Alternatively - an Auto Action that writes a record or log to the database recording the same information.

That's also doable. Configured the same as above except using a Query action then insert a row into whatever database table you create to store this data.

Alternatively I believe you could just use CB Profile Update Logger plugin.


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.
The following user(s) said Thank You: philiplardner

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

11 years 7 months ago - 11 years 7 months ago #223835 by philiplardner
Replied by philiplardner on topic Auto Actions - sending emails after cb_field edits
Thanks Kyle!

I hadn't come across the CB Profile Update Logger plugin - I'll check it out now.

Phil.


Update - I've just set up and tested the CB Profile Update Logger and it is exactly what I was looking for! Many Thanks!
Last edit: 11 years 7 months ago by philiplardner.

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

Moderators: beatnantkrileon
Powered by Kunena Forum