import_contacts_vcf CAN update contacts

V
Vitor
River Ridge Recycling

I've read a few posts about this new command available from agent version 14.5 and they suggest that you cannot update contacts.
According to posts here the below is what you can do with it.

Format of the Script is:
import_contacts_vcf <filePath> 1/0
0 = Add contacts to existing contacts
1 = Replace existing contacts with the new contacts of the vcf file

After some testing I've verified you CAN update contacts (using option 0) as long as your VCF entries have a unique identifier (UID), see example below. If you change any values other than the UID on a newer file it will update the contact with the corresponding UID.

BEGIN:VCARD
VERSION:3.0
N:_Name;;;
FN:_FullName Multi
ORG:Company;Department
TEL;WORK:+449999999999
UID:9420ba46-7e64-4d72-b6ea-25e102697764
ADR;TYPE=work:;;;City;;;
END:VCARD

Hope this is helpful.

4 years ago
Android
ANSWERS
J
JCMOD@SOTI
4 years ago

Hi Vitor,

Thank you for your contribution regarding import_contacts_vcf and updating existing contacts. I will be sure to add your information to the relevant internal resources.

Regards,

RS
Rafael Schäfer
3 years ago

I can't agree to that.

Just tested today and made one vcf file, kopied it and only changed the phone number (UUID still was the same etc.).

But nearly everytime the contacts were doubled using "0".

Only if the whole data for the contact is the same it won't be doubled.

So the "0" is only a solution if you only want to add new contacts from time to time and keep the existing ones but not to update existing ones.

V
Vitor
3 years ago

Works for me, probably depends on which phone and Android versions you're on. I've tested with a few Samsung models on Android 9,10 & 11.

RC
Raymond Chan Diamond Contributor
3 years ago

Hi Vitor,  Based your on tests, could you list what models/android-firmware versions works and what don't?  Could you find any consistent pattern based on your own test results?

RS
Rafael Schäfer
3 years ago

I tested on Nokia 5.3 with latest A11 firmware.

And as just said, here it only works if contact data has not changed. If you change then for example the phone number (UUID etc. still the same) you have the contact twice after executing the command with "0".