Skip to Content Skip to Menu

Multiple Auto Actions in Sequence

  • bascherz
  • bascherz
  • OFFLINE
  • Posts: 228
  • Thanks: 29
  • Karma: 11
3 years 10 months ago - 3 years 10 months ago #322258 by bascherz
Multiple Auto Actions in Sequence was created by bascherz
RE: www.joomlapolis.com/forum/153-professional-member-support/238118-multiple-auto-actions-in-sequence?start=24

This is an old thread but a new problem for me. I have several AA's firing off a newly-confirmed user. However, one of them is geocoding the address, the time to do which varies. Further down the line, an email gets sent with that geocoded address. It appears most of the time, that address is blank and does not appear in the email.

So this is a case where it would be better if one AA could be daisy-chained off another; in this case, sending that email needs to wait for the address geocoding to finish. Is there a way to do that? I think that would solve the problem.

Thanks!

Bruce S - Vienna, VA
Last edit: 3 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 10 months ago #322274 by krileon
Replied by krileon on topic Multiple Auto Actions in Sequence
The topic already explains how to chain auto actions below.

www.joomlapolis.com/forum/153-professional-member-support/238118-multiple-auto-actions-in-sequence?start=24#300335

Your issue however can likely be solved by using the Reload User parameter under the Parameters tab so it'll reload the user object. Example as to why this is needed as follows.

Action 1 <- changes field cb_test to 123
Action 2 <- checkes for cb_test being equal to 123

In the above if both are acting on the same trigger Action 2 will fail. The reason is because they're both acting on the same non-referenced user object. So Action 2 won't see the changes made by Action 1. The workarounds to this is to either specify the user object variable as a reference variable or to enabled Reload User in Action 2 (not necessary for Action 1) so that it reloads the user object.


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.

  • bascherz
  • bascherz
  • OFFLINE
  • Posts: 228
  • Thanks: 29
  • Karma: 11
3 years 10 months ago #322301 by bascherz
Replied by bascherz on topic Multiple Auto Actions in Sequence
I did try the Reload User option, but it didn't work. These geocode API queries take about 1 second to complete, so I believe the chaining option is necessary in this case. Thanks for the link! I will try that tonight. Like I said, the geocoding is definitely working. I can check the profile of the person whose welcome email didn't have it and it's in the profile. So this really seems like a timing issue.

Not sure what I'd do without you, Kyle. :)

Thanks again.

Bruce S - Vienna, VA

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

Moderators: beatnantkrileon
Powered by Kunena Forum