Suggestion on command import_contacts_vcf

Solved

Hi,

we test new script "import_contacts_vcf" is good idea but we have some suggestions:

before we use cgy.rgy.xpi with Contacts.vcf located in downloads folder and works very well, but in my org we have 2 types of separated contacts. This contacts stored on "Phone contact folder".

On the one hand we have GAL contacts, we take this from MS Graph APIs and make a .vcf with all data, this file is sync to Downloads folder on every device (file sync rule)

On the other hand we have individual driver contact (one .vcf by driver restored from old device).

The problem is:

In the future when we need to update GAL list on every device, need to delete manually all contacts and import this 2 .vcf with cgy.rgy.xpi or import_contacts_vcf. (GAL vcf and driver vcf) and if driver creates new contacts this dissapear.

With import_contacts_vcf $varFolder 0 import all contacts from vcf but if you have contacts then duplicate.

With import_contacts_vcf $varFolder 1 this delete all contacts (driver contacts imported with cgy.rgy.xpi too) and then create all contacts from .vcf

This contacts stored on "Device contact folder"

Is possible to have an export_contacts_vcf from "Phone contact folder" before execute import_contacts_vcf $varFolder 1? to delete all and import GAL updated and import driver contacts

My temporally solution is:

import_contacts_vcf %sdcard%/Download/EncodedContacts.vcf 1 > this delete all and create update GAL
import_contacts_vcf %sdcard%/Download/Contacts.vcf 0 > this only add driver contacts
 
with this if any driver creates new contacts post migration to new devices they don't have this contact because 1st command delete all
4 years ago
MobiControl - Android Script Engine
ANSWERS
RS
Rafael Schäfer
4 years ago

In my opinion it should changed to

  • 0: Add or change if contact still exists (actual generating duplicates which is nonsense)
  • 1: delete and create only the new ones from the file (currently working like that)
  • 2: Add but skip existing (not present actual)

I mean your export functionality could be nice too. But i bet Soti wants to have a feature request regarding this.

Solution
I
ICMOD@SOTI
3 years ago

Hi Miquel,

Thanks for your post!

Did the solution Rafael provided resolve your issue? If so, kindly mark this post as the solution. Feel free to reply if you have any questions.

Regards,

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

RS
Rafael Schäfer
3 years ago

I made a feature request to this because my post wasn't a "how it is", more like a "how should it be".

any updates? (ping xD)