Add Global contacts to your own contactbook

Loading Likes...

November first I started at a new company, Motion10 in Rotterdam, as Functional Consultant. The first week I followed a really cool introduction week to get to know the company and my new colleagues. After a couple days a colleague said: please call me in the car so we can talk whilst I’m driving. Ok, I unlock my new mobile phone but.. there are no contacts! Luckily I was able to find his phone number in Delve, but how cool would it be to have all my colleagues added automatically in my own Outlook address book.

So my new project started…


Reading-time: 3 minutes

Using Microsoft Flow

  1. Open Flow from your Office365 dashboard (https://portal.office.com)
  2. Open a new blank flow
  3. First we need to add a trigger. This can by anything, but for now I’m using the manually button.
  4. Second we are going to use a action from the Excel connector, Get Rows
    1. Create a new Excel document in your OneDrive (or somewhere else) and create a new table in the Excel document. You can call this table: Emailaddresses
    2. Add your email address to this table so we can test it first with one user.
  5. Select this Excel document in the Excel Action parameters (Screenshot 1)
  6. The next action is an Apply to each loop. We want to loop every row in the Excel table to create a new contact
  7. In the first parameter select the value item from the previous Excel Action (Screenshot 1)
  8. In this Apply to Each loop we can add sub-actions. Every sub-action will be executed when a row was found in the Excel document
    1. Add the sub-action Get user profile From the Office365 users connector
    2. At the parameter UPN you can select the table name from the excel document (Screenshot 2)
    3. The second sub-action is Create contact from the Office365 Outlook connector (Screenshot 3)
    4. You can fill in all the parameters you want from the previous sub-action Get user profile”
    5. The businessPhone number is difficult, because we get a table with phone numbers instead of one phone number. That’s why we need a new Apply to each loop to find every phone number. This is how we can create this:
      1. Add a new sub-action Edit contact from the Office365 Outlook connector
      2. Select the ID from the previous new contact action so we edit the same contact
      3. Add the parameter phone number and select businessPhones -Item from the get user action
      4. As you can see you get a new Apply to each loop, so for each found phone number he will follow this process (screenshot 4 and 5)
  9. The Task is done and you can test the flow.

Screenshot 1:

Screenshot 2:

Screenshot 3:

Screenshot 4:

Screenshot 5:

Leave a Reply

Your email address will not be published. Required fields are marked *