import contacts.vcf on Android Enterprise

Yesterday we released the 14.5.0 Agent which has a silent VCF Importing Script feature.

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

The Contacts should import silently and this script is supported for Android Classic and Android Enterprise.

If you're unable to use our new Script command above, here's a fresh link for you:

https://sftp.soti.net/public/file/RXWY2g2U4Eib0oXvbZNy8A/Contacts_Import%20(4).apk
P: Ej=1SUQ0p!q+0c

Source - https://docs.soti.net/soti-mobicontrol/android-agent/release-notes/v145/android-enterprise-agent-maintenance-releases/

Regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |


I read this and a whole load of other posts on importing contacts.

Still I did not find an answer that worked. I can't use any of the file links of the APK. Do you have a new one?

The import_contacts_vcf script only imports the first contact included in the VCF and then stops.

the 0 and 1 options do what they should.

I am using an export of an google contacts list exported to vcf.

4 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
4 years ago

Please provide details of

- your device agent version & build numbers

- active MDM API's reported by your device agent 

- brand and device model

- Android firmware version

- .vcf file you use in your test(s)

RS
Rafael Schäfer
4 years ago (edited 4 years ago)

The script works well, maybe your file formatting is wrong.

Can you post (without real data or just replaced) how your vcf file looks like?

AV

Hi Rafael,

I use an exported VCF file from an online google contacts list.

This is what it looks like. just edited the names, and phone numbers to have an example. The list is normally much longer.

BEGIN:VCARD
VERSION:3.0
FN:Ambulance 01-101
N:01-101;Ambulance;;;
TEL;TYPE=CELL:0612345678
CATEGORIES:myContacts
END:VCARD
BEGIN:VCARD
VERSION:3.0
FN:Ambulance 01-102
N:01-102;Ambulance;;;
TEL;TYPE=CELL:0612345678
CATEGORIES:myContacts
END:VCARD
BEGIN:VCARD
VERSION:3.0
FN:Ambulance 01-103
N:01-103;Ambulance;;;
TEL;TYPE=CELL:0612345678
CATEGORIES:myContacts
END:VCARD
BEGIN:VCARD
VERSION:3.0
FN:Ambulance 01-104
N:01-104;Ambulance;;;
TEL;TYPE=CELL:0612345678
CATEGORIES:myContacts
END:VCARD
BEGIN:VCARD
VERSION:3.0
FN:Ambulance 01-105
N:01-105;Ambulance;;;
TEL;TYPE=CELL:0612345678
CATEGORIES:myContacts
END:VCARD

AV

- your device agent version & build numbers

15.0.0.1110

RC Version: 1.18.2.100

Plugin Version: 1.6.0.102

- active MDM API's reported by your device agent 

RC Virtual Display, Work Managed Device, Android Zebra EMDK, Android Plus 1.6

- brand and device model

Zebra TC56

- Android firmware version

02-32-04.00-OG-U20-STD

security patch: 2021-04-05

MX Version 10.3.0.24

AV

Just downloaded an VCF converter and converted the VCF from my online Google account to an VCF version 2.1

this one works (altough the free version of the converter only lets me export 5 contacts).

It now imports all 5 contacts.

Seems like the export of an online google account directly to VCF is a version 3.0 wich isn't supported by the SOTI google agent.

Is this something that SOTI might be updating in the near future?

Or do I need to buy an VCF converter for the time being?

RS
Rafael Schäfer
4 years ago

In general it looks fine to me.

I never used categories, so don't know how this will work or not but when i see it right you only use things which are part of version 2.1 maybe check if the lower version works better?

Even check if the file is correct encoded (make a file with windows editor for example to be sure).