Update contact number via vcf file and script but it take replace

R
rathasatekun Bronze Contributor
Gosoft (Thailand) Co.,Ltd.

Hi SOTI Discussion

 

I am experiencing an issue while using the import_contacts_vcf command to add contacts to my device.

I am using the following command: import_contacts_vcf "/sdcard/Download/new_contacts.vcf" 0 UTF-8

According to the documentation, setting the mode to 0 should add contacts to the existing list (non-destructive). However, instead of adding new contacts, it is overwriting or replacing the existing contact information on my device with the data from the .vcf file

Any guidance or troubleshooting steps would be greatly appreciated.

Thank you,

 

SOTI Server 15.3

SOTI Client 2026.x.x

Device Samsung 

Android os 15

a month ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer
25 days ago

I haven't tested for long but last time I tested it was exactly how it was described and sadly we would have liked to see it working like you encountered now 🤣

We also raised a feature request years ago for another mode to update existing contacts (if they already exist) and keep the old ones. But nothing happened yet.
In general a better solution than using vcf files would be nice.

Depending on your setup, you could sync contacts using Google account or exchange accounts.

N
NMMOD@SOTI
12 hours ago
  • We reviewed the import_contacts_vcf command and confirmed that using mode 0 is intended to add contacts to the existing contact list. Mode 1 is used to replace the existing contacts.
  • The command being used is therefore correct:
    import_contacts_vcf "/sdcard/Download/new_contacts.vcf" 0 UTF-8
  • Your environment is SOTI MobiControl Server 15.3, Device Agent 2026.x.x, Samsung device, and Android 15.
  • Since the existing contacts are being overwritten despite using mode 0, we would like to investigate the contents of the VCF file and how the contacts are being identified.
  • Please check whether the VCF file contains a UID (Unique Identifier) and whether any of the UID values match existing contacts on the device.
  • As a further test, please try importing a VCF containing completely new contacts and confirm whether the existing contacts are still affected.