Picture of Jean-Francois 1756
Registered 10 years 305 days
Jean-Francois 1756 Monday, 19 September 2022, 12:21 PM
Contacts Admin App - download all contacts
Hello All,

How can we do to download all contacts in the App "Contacts Admin" ?
The function seems to be not present for the moment in v13r1 and v13r2
We tried by command line without success

Thanks
Picture of Marcus Schultes (innovaphone)
Moderator Registered 5 years 31 days
Marcus Schultes (innovaphone) Wednesday, 28 September 2022, 02:35 PM
1 of 1 users consider this post helpful
Re: Contacts Admin App - download all contacts
Hi Jean-Francois,

a download via the Contacts Admin app is currently not possible.
Might be added in future releases.

But here are instructions, how to export all contacts via ssh and WinSCP:
http://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_App_Service_Contacts#Manually_Exporting_all_Contacts

Greetings,
Marcus
Picture of Johnny.Z
Registered 9 years 282 days
Johnny.Z Wednesday, 8 March 2023, 05:26 PM
Re: Contacts Admin App - download all contacts
Hello Marcus,

I have tried this with 13r2sr17 and 13r3sr2.
It looks like all properties exept phone numbers are exported?

id;entrytype;dbsid;extanchor;cn;sn;givenname;company;displayname;owner;info;city;street;postalcode;state;country;privatecity;privatestreet;privatepostalcode;privatestate;privatecountry;title;position;url;department;description;roomnumber;sip;guid;usn
Picture of Elias Lievens (innovaphone)
Moderator Registered 4 years 30 days
Elias Lievens (innovaphone) Thursday, 13 April 2023, 04:52 PM
1 of 1 users consider this post helpful
Re: Contacts Admin App - download all contacts
Hello Johnny,

Can you try to replace the last line of the wiki-article
https://wiki.innovaphone.com/index.php?title=Reference13r3:Concept_App_Service_Contacts#Manually_Exporting_all_Contacts ?

Original (complete entries-table) mentioned in the article:
psql -d "innovaphone.com_contacts" -c "copy entries to '/mnt/sda2/home/admin/export/contacts.csv' delimiter ';' CSV HEADER"

Adjusted line (complete entries-table + left joins to numbers and email-tables):
psql -d "innovaphone.com_contacts" -c "copy (
SELECT ent.*,
num1.number AS number,
num2.number AS work,
num3.number AS mobile,
num4.number AS homephone,
num5.number AS fax,
em.email AS email
FROM entries AS ent
LEFT JOIN numbers num1 ON ent.id = num1.entryid AND num1.numbertype = 1
LEFT JOIN numbers num2 ON ent.id = num2.entryid AND num2.numbertype = 2
LEFT JOIN numbers num3 ON ent.id = num3.entryid AND num3.numbertype = 3
LEFT JOIN numbers num4 ON ent.id = num4.entryid AND num4.numbertype = 4
LEFT JOIN numbers num5 ON ent.id = num5.entryid AND num5.numbertype = 5
LEFT JOIN emails em ON ent.id = em.entryid
) to '/mnt/sda2/home/admin/export/contacts.csv' delimiter ';' CSV HEADER";

Change in the above statement the database-name 'innovaphone.com_contacts' and the filename 'contacts.csv'.

Kind Regards,
Elias
← You can define your color theme preference here