Contacts Import

Status
Not open for further replies.

markm

New Member
May 10, 2021
6
0
1
50
I have been working on importing my contacts for speed dial use and have run into an issue I can not get by.

The import works great for contact information, but once i add anything from contact_phones (phone_type_voice,phone_primary,phone_number,phone_speed_dial) it is creating a separate phone record for each field added.

My Import (basic to test)
contact_type,contact_organization,phone_number,phone_speed_dial,phone_primary,phone_type_voice
customer,Customer A,6085551212,101,1,1
customer,Customer B,6085551213,102,1,1

attached is snip of mapping and also if result.

Any help would be GREATLY appreciated. Hitting a wall.
 

Attachments

  • mapping.JPG
    mapping.JPG
    25.7 KB · Views: 23
  • phone_records.JPG
    phone_records.JPG
    26.9 KB · Views: 23
Last edited:

hfoster

Active Member
Jan 28, 2019
676
80
28
34
Yeh, I'm getting the same thing. I think the following commit: 55e1e2ea355530de4a2560eade97d4c3b231dbf7 has changed how the import schema operates, but I'm not exactly sure of the logic behind it now. You can import multiple numbers for one contact, no problem:

contact_type,contact_organization,contact_name_given,contact_name_family,phone_number,phone_number,group_name Customer,foobar,adam,example,5555551,5555552,user Customer,foobar,barbara,example,5555553,5555554,user

As soon as I try to add any attributes to the numbers I'm importing, it just adds more empty lines like your picture.

contact_type,contact_organization,contact_name_given,contact_name_family,phone_number,phone_number,phone_speed_dial,phone_speed_dial,group_name Customer,foobar,adam,example,5555551,5555552,101,102,user Customer,foobar,barbara,example,5555553,5555554,103,104,user

Something ain't right with it. I can't seem to import labels, even if I give it a hand with a 'phone_label' header like the code implies, I still can't select them. If I omit it, they get the label 'Work'.

I think a bit of clarification on the new import schema wouldn't go amiss here, as it's changed some historic imports that worked fine for me on previous versions.
 
Status
Not open for further replies.