Skip to Content Skip to Menu

How to have trigger onAfterNewUser and Field updated in the user that has been c

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
3 years 2 weeks ago #326942 by timstohr
Hi Kyle,
My main admins are creating new users in the backend, so a trigger with onAfterNewUser is the correct one. I would now like to update a field upon user creation (and not upon first login). I know that I have to use [var1_id], which contains the user ID of the user that was just created.

Problem is how to get AA to act on that user ID instead of the trigger actionator?

Kind regards,

Tim

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
3 years 2 weeks ago #326946 by krileon
I don't understand what you're asking. The auto action will be against the user being updated if User is left as Automatic. So you'd just select a field action and configure whatever field you want updated. It will then update that field for the user created or are you wanting it to update the field of the admin that is creating the user?


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