Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

Batch update cb field based on user group

  • fjallis
  • fjallis
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
5 years 9 months ago #310367 by fjallis
How do I update a specific CB field based for members of a specific User group? The batch tools under Members are fixed. Perhaps CB Auto actions? But how in that case?

Select all users Group = A and set CB_Field = X

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
5 years 9 months ago #310388 by krileon
Replied by krileon on topic Batch update cb field based on user group
At this time there's no batch functionality for fields. Best I can suggest is a Field action in CB Auto Actions acting on the after user login trigger so it'll change the field after they login. There's the Internal Users trigger in CB Auto Actions which will loop every user through your auto action that could also work, but that's a very heavy operation. As for limiting it to a specific usergroup simply use the Access parameter of the auto action.


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.

  • fjallis
  • fjallis
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
5 years 9 months ago #310391 by fjallis
Replied by fjallis on topic Batch update cb field based on user group
Thanks! You mention an Internal Users trigger? Could you please give a little bit more on how set it up? The site is very, very little used, perhaps one or two access per day, and in total only 250 users. Perhaps the action won't be that heavy...?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
5 years 9 months ago #310396 by krileon
Replied by krileon on topic Batch update cb field based on user group
Internal Users loops your entire userbase through the auto action. It's not about how many users you've active per day, but how many you have total. So if you've 10,000 users they will all be sent through the auto action. It has no batching functionality at this time so this can be a very heavy operation. To use it add the Internal Users trigger to your auto action then run the URL provided in CB Auto Actions > Parameters; typically you'd schedule it with CRON for regularly ran tasks. However I think in your case the after login approach should be fine.


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