Forum Discussion
Importing contacts from a CSV file into a Contact Group in a Shared Mailbox.
If you want to programmatically create a Contact group, you will have to use the EWS API, "pure" PowerShell doesn't have such functionality.
Hi Vasil.
Creating the Contact Group is not the issue. What I am trying to achieve is to import the contacts from a csv file into the Contact Group.
Not sure if you have a scipt or a way forward to be able to achieve this.
Thanks.
- VasilMichevJan 25, 2019MVP
Still the same answer, you have to use EWS. PowerShell on itself doesn't deal with item-level operations when it comes to Exchange Online, with few minor exceptions. Glen's Contacts module should be able to do it: https://github.com/gscales/Powershell-Scripts/tree/master/EWSContacts
- Victor_UngureanuJan 28, 2019
Microsoft
You could create a new contacts folder, import the CSV to that folder, open the contacts group, add members>from Outlook contacts>select the new contacts folder>bulk select all contacts>click on the "Members" button>OK
All these steps are done in Outlook for PC.
- VasilMichevJan 28, 2019MVP
My assumption is that the author wants to do this programmatically.