Skip to Content Skip to Menu

Auto Action query doesn't update username

  • apdt
  • apdt
  • OFFLINE
  • Posts: 92
  • Thanks: 2
  • Karma: 3
12 years 2 months ago #208045 by apdt
I did set it to after registration before so member ID was generated for anyone who registered. However, this means if a user is not approved by the committee the member ID will be 'wasted' and there will be gap in the member ID of the active/approved members. My client's policy is they will give membership ID only to approved member.

So technically, yes, executing the SQL after registration works and guarantees correct details sent out in the Welcome email. It's just that the workflow doesn't suit the business policy so I had to find another way :-)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 2 months ago - 12 years 2 months ago #208047 by krileon
Replied by krileon on topic Re: Auto Action query doesn't update username
There is also onBeforeUserActive and then onUserActive, which you can try and see if either will fit your needs. Both are fired before the email is sent and onUserActive is triggered after all user storage so maybe it'll work.


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.
Last edit: 12 years 2 months ago by krileon.

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

  • apdt
  • apdt
  • OFFLINE
  • Posts: 92
  • Thanks: 2
  • Karma: 3
12 years 2 months ago - 12 years 2 months ago #208049 by apdt
Excellent! I'll give them a try. Thanks Kyle!!

UPDATE:
I can't find onUserActive in the dropdown, only onBeforeUserActive. However, it's fired right after submitting the registration form.
Last edit: 12 years 2 months ago by apdt.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 2 months ago #208064 by krileon
Replied by krileon on topic Re: Auto Action query doesn't update username
Use onUserActive, but add a condition to ensure [approved] is Equal To 1, maybe that'll do the trick. Did you try onBeforeUserActive?


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