Any way to disable prompt from Contacts_Import?

Solved
IS
Ian Stuart
Cross Country Couriers

Hi,

I have implemented the method to import contacts onto our Android Zebra TC-56's outlined here
and it does work. I am wondering if there is a way to get around the prompt of "Do you want to import these contacts? Yes/Cancel". As I guarantee at least some users would hit cancel. I've tried sending intent commands, as well as scripts such as this: import_contacts_vcf and it does not seem to work.

Is there a way to run the import command against Contacts.vcf without having to manually accept the prompt?

Thanks!

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

Hi Ian,

I believe your problem is likely related to how you specify the vcf file/file-path in your script.

Solution
IS
Ian Stuart
2 years ago

Thank you Raymond, you are correct. I was not using the correct syntax.

For reference here is the command that worked.

import_contacts_vcf %sdcard%/download/Contacts.vcf 1

RS
Rafael Schäfer
2 years ago

Hi Ian,

we use this import script but never saw a prompt.
I assume you have put it with a vcf file in a profile?

I hope you haven't checked that the vcf file will be executed after it has been copied in the file properties in Package Studio.

C
CDMOD@SOTI
2 years ago

Hi Ian,

Thank you for requesting a response from SOTI support staff. 

I see you received a solution within the community, thank you for marking the post that solved it as solution.

Please feel free to reach out to with any other inquires you may have.

Thank you

Kind Regards,

Technical Support, SOTI | Call Us | SOTI.net | Discussion Forum | Log a Case Online | Facebook | LinkedIn | Twitter |