Skip to main content

Syncing calendar events from outlook to Gmail calendar using Flow.


Recently I started working on Microsoft flow for one of the client where we are migrating the workflows from SPD (SharePoint designer) to Microsoft flow. I liked flow for the way we can automate some of the small daily tasks.  
Flow provides us connectors through which we can connect many applications to the flow like GmailFlow gives us lot of templates which we can start with or create a new flow starting from blank 

Scenario:-  
I want to sync my outlook calendar (company) to my google calendar which is available on my android phone. Syncing my company's calendar which helps me in tracking of my events on my mobile.  

Prerequisites:-  
Having a Microsoft online account for logging into the Microsoft flow. 

Trigger:-  
A new calendar event on the Microsoft outlook calendar. 

Steps for creation of the flow.  

Steps for creation of the flow.  
  1. Navigate to the Flow connections page and create connections for the google calendar and the outlook mail. Select connections from the settings(Top right corner) drop down.  
 
 
  1. Connections page will show all the connections which are configured for the logged in user.  
 
  1. Click on the new connection link at the top right corner.  From the new connection page search for Google and click on google calendar. Provide the credentials for the google calendar.  
 

  1. Similar add new connection for Microsoft outllok also.  
 
  1. Now we need to create the flow using these connections. Navigate to the My flows page. On my flows page select Creat from template link.  
 
  1. On the template page search for Google calendar. You will get all the templates related to Google calendar. Select outlook.com calendar to Google calendar template.  
 

  1. It will navigate to the template details page, details page will show the connections that are required. Click on continue.  
 
  1. It will take you to the create flow page. First action step will be triggered when ever a new event is created in the outlook calendar. On the first step select the calendar from outlook for which you want to Sync the events.  
 
  1. Second step in the flow is checking for any event is already created using the same body. Its for avoiding duplicate events.  
 
  1. If the condition is satisfied a new event will be created in the google calendar. If no then nothing gets done. In the create an event action for google select the calendar from the drop down. Html to Text conversion action is used for conversion of the body of the calendar event from HTML to text.  
  2.    
  3.  
    1. After completing all the configurations click on create flow at the top. It create a flow and will be shown under my flows tab. Users can edit the flow after the create.  
     
    1. When ever a new event is created in the outlook calendar an event will be created in the google calendar.  No of times a flow is run and whether the runs are successful are not can be viewed from the run hisotry of the flow.  
     
    1. I have added an additional error handling step to the flow, if the flow fails to run or get timed out due to any of the reasons a mail will be sent to the administrator to look into the error. The action will be configured if any of the steps fail or timed out.  
     
    Check the setting of the action Send an email 
  4.    

Comments

Popular posts from this blog

Sharepoint 2013 REST API limitations with site columns

Recently i attended an interview for one of the company, the interviewer asked me a question on rest api. How to get a publishing image field using rest api? I answered its the normal way how we get the other fields. But later i came to know that its the wrong answer. After some research on Google came to know that there some limitations to rest api in sharepoint 2013. Below is a list of columns available using Rest api. Column Support Notes Hyperlink or Picture Supported Single Line of Text Supported Multiple lines of text :: Plaintext Supported Multiple lines of text :: Richtext Supported Returns unencoded XHTML Multiple lines of text :: Enhanced Richtext Supported Returns unencoded XHTML Choice Supported Column is required in the  $expand  keyword Counter Supported Integer Supported Number Supported Currency Supported Date Supported Returns an ISO 8601 date e.g. 2013-03-08T11:00:00 Yes/No Supported Returns true or false string literals Person or Group Suppo...

How to upgrade typescript version in a SPFX solution

Why do we need to upgrade typescript version in a SPFX solution? As part of SPFX development we try to install 3 rd party libraries, there is a possibility that we might face type errors. For example, if we try to install ANTD package as part of your solution and use one of its components and try to build the solution. You might be seeing the type errors (TS1005,TS1109) as shown below. Typescript errors How to find out the typescript version? When you build (Gulp build) the SPFX solution you will be able to find out the typescript version from the build log as shown below.  Steps for updating the Typescript version. In SPFX solution typescript version has dependency on the @Microsoft/rush-stack-compiler package version.  In the package.json if you have @microsoft/rush-stack-compiler-2.7 then the typescript version is 2.7.x.    In the SPFX solution deleted the node_modules folder. It will remove all the packages that are installed....

Use of Expression in Microsoft flow through an example

Most of the basic flows can be configured using the templates provided by Microsoft. But in real time we will be developing flows which have complexity. Expression play an important role in fulfilling the requirements. Scenario : -  We have project details list which has the below columns, we need to intimate the project team before 2 days of the end date. (Please note that this scenario is picked up from one of the Microsoft insight demo) The following points needs to be implemented ·          Only title and End time are mandatory fields, Start time if not entered needs to be taken as the current date. ·          Number of days is the difference between the start time and end time.   ·          Email needs to be sent before 2 days of the end date. ·          If any attachments they nee...