Comments on: Prepopulating Outlook Contacts with the Graph API https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/ Practical Office 365 News, Tips, and Tutorials Fri, 15 Sep 2023 08:15:43 +0000 hourly 1 https://wordpress.org/?v=6.3.2 By: Benjamin Berger https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-274679 Fri, 15 Sep 2023 08:15:43 +0000 https://practical365.com/?p=51665#comment-274679 Thanks, great script, work like a charm !
If I want to create contact in a new contact folder (under root folder) with Create ContactFolder cmd, how can I integrate it ?
I find this ressource (https://learn.microsoft.com/en-us/graph/api/user-post-contactfolders?view=graph-rest-1.0&tabs=powershell) but fail to implement.

]]>
By: Sean Mcavinue https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-272585 Wed, 23 Aug 2023 07:12:41 +0000 https://practical365.com/?p=51665#comment-272585 In reply to yuki.

Hi Yuki,
It may just be a syntax error in the JSON if it’s picking up a bad request. I haven’t tested but as mobile phone is a string value and not a collection like businessPhones, what you would need is:

“mobilePhone”: “$($contact.mobilePhone”,

https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0

]]>
By: yuki https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-272584 Wed, 23 Aug 2023 07:04:44 +0000 https://practical365.com/?p=51665#comment-272584 Hey
really cool script and I got it to run, but I would really love to add a 2nd phone number.
I already tried to modify the script and csv by adding
“mobilePhone”: [
“$($contact.mobilePhone)”,
to the
$ContactObject = @”
but as soon I do a change and run the script I get error code (400) Bad Request

]]>
By: Dan Vespa https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-248716 Wed, 21 Dec 2022 16:35:22 +0000 https://practical365.com/?p=51665#comment-248716 Great Script! How to you format JSON for multiple email addresses and email address display names?

]]>
By: Dan Vespa https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-248715 Wed, 21 Dec 2022 16:33:42 +0000 https://practical365.com/?p=51665#comment-248715 Great script, Thanks! How do you format JSON is contact has multiple email addresses?

]]>
By: NP https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-245209 Fri, 21 Oct 2022 04:37:55 +0000 https://practical365.com/?p=51665#comment-245209 I have a bit of a quirk. I ran the script and used the sample csv provided.
If i click on Address Book in Outlook and use the Contacts drop down it only shows Bruce Wayne
But if i click on the contacts button or People button in Outlook it shows my pre-existing contacts.
Does this script in any way over write any existing contacts?

]]>
By: Frédéric D'Astous https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-244623 Tue, 11 Oct 2022 19:24:23 +0000 https://practical365.com/?p=51665#comment-244623 How to import in a different contact folder than the default one?

]]>
By: Cena https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-244563 Tue, 11 Oct 2022 02:40:07 +0000 https://practical365.com/?p=51665#comment-244563 Hi Sean,
I want to use “+” as well in the phone number for the country code. If I have + then the script wont work. Is there a way to include + character in the csv file for phone numbers. That would be a great help Sean.
If you can suggest me anything that will help me a lot.

]]>
By: Sean McAvinue https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-243010 Thu, 15 Sep 2022 09:12:39 +0000 https://practical365.com/?p=51665#comment-243010 In reply to KJ.

I don’t have one already created but if you use this as a base and look at using DELETE instead of POST that would work

]]>
By: Cena https://practical365.com/prepopulating-outlook-contacts-with-the-graph-api/#comment-243001 Thu, 15 Sep 2022 03:56:22 +0000 https://practical365.com/?p=51665#comment-243001 Hi Sean,
I want to use “+” as well in the phone number for the country code. If I have + then the script wont work. Is there a way to include + character in the csv file for phone numbers. That would be a great help Sean.

]]>