Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Need to give all my users a field value

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 8 months ago #278176 by timstohr
Need to give all my users a field value was created by timstohr
Hey Kyle,

I need to give all the users from one precise ACL a value.

I know that I need to use Auto actions, I have used field value auto action, I have used the trigger but it does not seem to work.

Could you please give me a quick example of a field action auto action that you would use to change the value of the field [cb_city] of all members of the ACL "Registered without advertisers" to Munich?

I will use this as a starting point to understand what I have done wrong.

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278184 by krileon
Replied by krileon on topic Need to give all my users a field value
You need to use the internal users trigger in order for an action to loop every user. This can be done using the following.

Global
Triggers: Internal > Users
Type: Field
User: Automatic
Access: "Registered without advertisers"
Action
Field: cb_city
Operator: Set
Value: Munich
Translate Value: No

Next you need to click the Internal Users URL within CB Auto Actions > Parameters.


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 8 months ago - 8 years 8 months ago #278209 by timstohr
Replied by timstohr on topic Need to give all my users a field value
Getting a 500 error when I click on "Internal user URL"...

Does it mean that one of my CB auto actions is provoking this error?

EDIT: I have checked and none of my Auto actions have "Internal" as trigger.
Last edit: 8 years 8 months ago by timstohr.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278228 by krileon
Replied by krileon on topic Need to give all my users a field value
You're probably hitting memory limits. You likely have too many users for Internal Users to be able to process them all. There currently is no batching functionality so I don't have anything to suggest beyond just doing a SQL query in phpmyadmin to mass-update them.

EDIT: I have checked and none of my Auto actions have "Internal" as trigger.

The internal triggers are at the very top of the dropdown under the Internal optgroup.


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 8 months ago #278231 by timstohr
Replied by timstohr on topic Need to give all my users a field value
Restricted it to 180 people and it still does not work. I will use PHPMyadmin and be VERY VERY VERY careful...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278238 by krileon
Replied by krileon on topic Need to give all my users a field value
There's no way to restrict the internal users usage. It loads every user into memory and sends them through the actions processing as most of the actions conditioning is done in PHP. So it can be slow. I've added a feature ticket to implement batching support.


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