Skip to Content Skip to Menu

Auto action usecase question related to activity

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
3 years 11 months ago - 3 years 11 months ago #322022 by liaskas
Hello...

Is there a case that Admins get by mail a notification about new activity posts?

For example...

we want admins to receive an e-mail like the following for every new post created.

User [username] created a new post on activity stream!

Post content:
[substitute the post content here...]


Can you please guide us create the auto action if this can be done?

Thank you in advance
Last edit: 3 years 11 months ago by liaskas.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 months ago #322032 by krileon
Make a copy of the "CB Activity - Post Notification" system action. Change its "Type" to "Email" then remove all except the first condition. Set the "To" parameter to [cb_moderators]. That should email moderators when a user posts profile activity. You can substitute the activity information in using var3. So for example if you want what the user is posting you'd use [var3_message].


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.

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
3 years 11 months ago #322041 by liaskas
Hello Krileon

Thank you for your reply.

I followed your instructions and everything worked fine. Admin received an e-mail with the [var3_message] included.

We also created another auto action that triggers on "activity_onAfterUpdateStreamActivity"

Now our question is...

is it possible that the [var3_message] brings the content as it shows on timeline (mostly paragraphs), so that the e-mail is easier to read? Now the [var3_message] strips the formation.

Thank you...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 months ago #322042 by krileon
That would require the stream parser to be applied to the message. You won't be able to do this without using a Code auto action and coding the entire email process yourself. You can try the below using format functions to try and call the stream function for this, but it may not work as this functionality wasn't really intended for this usage.

[cb:parse function="parser" class="var1" method="parse" string="[var3_message]" /]

Be sure "Format Functions" is set to "Yes" under Parameters before trying the above.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum