C# Corner Bengaluru Chapter Meet! Hands-on session on #MicrosoftFlow with Vijai Anand
Sunday, 21 October 2018
Thursday, 11 October 2018
Using Azure Functions, Cognitive Services and Flow for classifying Office 365 SharePoint Word Documents - Part II
Let us look how to integrate Azure Function, Cognitive services into Microsoft Flow for extracting tags/categories and update the SharePoint document item.
This article series helps us to work on a special use case of extracting information of word documents uploaded to Office 365 SharePoint libraries and then analyze/classify the document content using Azure Cognitive Services. Then update the document with classified data as tags/categories. The article links are shown below.
The Azure function created in the previous article is available on Github repository (https://github.com/nakkeerann/analyze-sp-word-documents).
This article series helps us to work on a special use case of extracting information of word documents uploaded to Office 365 SharePoint libraries and then analyze/classify the document content using Azure Cognitive Services. Then update the document with classified data as tags/categories. The article links are shown below.
- Using Azure Functions, Cognitive Services and Flow for classifying Office 365 SharePoint Word Documents - Part I (Previous Article) - Azure function is briefly explained with code to understand how the data is being extracted using open XML formats/references available.
- Using Azure Functions, Cognitive Services and Flow for classifying Office 365 SharePoint Word Documents - Part II (Current Article)
Extract Code From Github
- Clone the code from the github repository to the local.
- Open in visual studio and make necessary changes, like updating user credentials and SharePoint site and details.
Saturday, 6 October 2018
Using Azure Functions, Cognitive Services and Flow for classifying Office 365 SharePoint Word Documents - Part I
This article series helps us to work on a special use case of extracting information of word documents uploaded to Office 365 SharePoint libraries and then analyze the document content using Azure Cognitive Services.
We have seen before extracting tags and metadata properties of image files from Office 365 SharePoint using Microsoft Flow and Azure Cognitive Services.
Microsoft Flow has a Get File content action, but that doesn't help extracting word documents content. Only it supports extracting content of notepad as straight forward approach. Since Microsoft Flow doesnt provide any option to read the word documents content, we will be using Azure Functions to extract the content. Once we have the content, we will use Azure Cognitive service to get the tags for the content extracted. Here Microsoft Flow is used to manipulate triggers and subsequent actions. So our algorithm is will be as follows.
We have seen before extracting tags and metadata properties of image files from Office 365 SharePoint using Microsoft Flow and Azure Cognitive Services.
Microsoft Flow has a Get File content action, but that doesn't help extracting word documents content. Only it supports extracting content of notepad as straight forward approach. Since Microsoft Flow doesnt provide any option to read the word documents content, we will be using Azure Functions to extract the content. Once we have the content, we will use Azure Cognitive service to get the tags for the content extracted. Here Microsoft Flow is used to manipulate triggers and subsequent actions. So our algorithm is will be as follows.
High level architecture for classifying SharePoint Word Documents |
Saturday, 22 September 2018
Connecting Office 365 SharePoint with CDS using Microsoft Flow
How many of you have heard about CDM and CDS? These two
components are availabe on Microsoft platform. CDM stands for Common Data Model and CDS is
Common Data Service.
CDM is a secured database stored on Microsoft Azure, which
contains business standard entities. Those entities can be used by users for
various purposes including integrations. This is commonly used for integrating
two Microsoft Systems, with the help of templates/entities.
CDS is a basically a service, that utilizes common data
model to enable cross platform reporting capabilities. It is most commonly used
on Power BIs for report generations.
Scenario
Think of a scenario, where some application uses common data
service for storing the data. And some application uses Office 365 SharePoint as the
storage point. And both of these applications deals with the same data sets. In
this case, both of these storage system needs to be synchronized.
The solution which we are looking at may not be a full end
to end solution, but let’s see how we can push data from SharePoint to CDS. There
might be many ways, but here let’s look how it can be done easily using
Microsoft Flow with just configurations.
Wednesday, 12 September 2018
Error Handling for Office 365 SharePoint Actions on Microsoft Flow
In this post, let us look how we are going to handle the Office
365 SharePoint action errors that occurs on Microsoft Flow platform.
Problem Statement: There is an option to get the user
profile property on Microsoft Flow using SharePoint REST API. We need to handle
if there is any error to this action. Let us see how to handle/catch the error
and send a mail with error details.
Sometime back I have published an article for updating user display names for items created on SharePoint using Microsoft
Flow. We will use the same concept here, but only we will see how to catch and
send the error details over mail.
- Create a trigger to fire the flow whenever an item is created.
- Create a SharePoint action “Send an HTTP request to SharePoint”, to get the user profile property details as explained in the article mentioned above.
- Parse JSON data to get the exact required property (user display name).
- Update the same item with author name field with the value retrieved.
Handling Error:
- Just after the “Send an HTTP request to SharePoint” action, add a parallel branch with an action.
Subscribe to:
Posts (Atom)