Skip to Content Skip to Menu

How to populate a new field from a CSV file

  • scubabyss
  • scubabyss
  • OFFLINE
  • Posts: 55
  • Thanks: 10
  • Karma: 1
6 months 4 weeks ago #337942 by scubabyss
I have added a new field to CB and I want to populate it for all existing users from a CSV file. 

How could-it be done ? Export and Import integrated with CB is not designed for that. It says the username or email already in use and therefore cannot add data in the new field.

Kind Regards
Scubabyss

 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
6 months 4 weeks ago #337951 by krileon
Replied by krileon on topic How to populate a new field from a CSV file
The CB > User Management import feature can be used to mass-update. You just need to change how the import is handled using the dropdown. All you should need to include is their user id in an id column and whatever fields you want to update. Set the dropdown import option to "Overwrite existing entries with records matching ids". It will try to create a new user though if the user id supplied doesn't exist.

Alternatively you can just use database tools for this. phpmyadmin for example supports importing data.


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.
The following user(s) said Thank You: scubabyss

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

  • scubabyss
  • scubabyss
  • OFFLINE
  • Posts: 55
  • Thanks: 10
  • Karma: 1
6 months 4 weeks ago #337953 by scubabyss
Replied by scubabyss on topic How to populate a new field from a CSV file
Very kind response, I really appreciate. I am sorry that I did not see the parameter to change the behavior.
I just make it, fantastic
Scubabyss
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum