[SOLVED] Auto Actions EMail insert Username

8 years 4 months ago - 8 years 4 months ago #275152 by uncleron12345
[SOLVED] Auto Actions EMail insert Username was created by uncleron12345
Hello,

I need some extended moderation when a user updates his own profile details.

To get the moderators informed I tried to configure an auto action with
onAfterUserProfileSaved.

How can I get the username and/or emailadress of the user who edited the profile in the message which will be sent to the moderators?

The E-Mail text will look like:

Hello,

User [username] (and/or) [user emailadress] has updated his profile.
Please review.

...


Without this information the mods doesn't know which profile they have to review, of course.


Or is there another solution?


Thanks in forward!

Best
René

Please Log in to join the conversation.

8 years 4 months ago #275156 by krileon
Replied by krileon on topic Auto Actions EMail insert Username
You want to substitute in the moderators username or the username of the profile that was updated? The substitutions by default are of the user object of the trigger. So this typically would be the profile owner. For the moderator you can try using [cb:userdata field="FIELD_NAME" user="#me" /] usages. Note you should be using the after profile update trigger though.


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: uncleron12345

Please Log in to join the conversation.

8 years 4 months ago #275163 by uncleron12345
Replied by uncleron12345 on topic Auto Actions EMail insert Username
Hello krileon,

thanks for your fast reply :)

your solution with [cb:userdata field="FIELD_NAME" user="#me" /] worked fine!
Thanks a lot!

Best

René

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.195 seconds

Facebook Twitter LinkedIn