DEV Community

Simon Waight
Simon Waight

Posted on • Originally published at blog.siliconvalve.com on

2 1

Enriching SharePoint Image Libraries with Azure Cognitive Services

The ability to locate content in SharePoint via search has been continually improving over the years, seeing big jumps in impact with the release of features such as Delve and OCR in OneDrive for Business.

Indexing file content from Document Libraries has improved no end, but one item I see as a gap is extracting inferred meta-data out of images stored in SharePoint.

In this post, and the associated screencast, I’ll take a look at how we can utilise several of the capabilities of Azure Cognitive Services and Azure Logic Apps to quickly add value to image data that you upload to SharePoint.

Baseline Services

In order to use this solution you will need:

Building the Logic App

The best thing about Logic Apps is not only are they serverless, but they are almost entirely “codeless” as well. Rather than me describe in detail the steps, I’ve included the following items to help you get going.

1. The designer view of the Logic App

Click on the image to view an enlarged version.

Logic App

2. The Logic App exported to GitHub

Grab the code from here: https://github.com/sjwaight/SharePointCognitiveServices.

Note: this doesn’t come with the Connections which you will need to manually recreate using your own SharePoint and Cognitive Services API details.

In the image below you can see how to retrieve the GUID for a List in SharePoint Online – get to this page by clicking on “Library settings” from the settings menu (the cog) that is near your username in the Office 365 header.

SharePoint List GUID

3. A Screencast showing how this all hangs together

Note that in the screencast there’s a slight difference to my published Logic App above… see if you can find it !😉

Well, there we have it – how you can (fairly) easily add more value to the image data you store in SharePoint. Note that you could apply this approach to documents stored in Google Drive or Dropbox, as well as using many of other categories of Azure’s Cognitive Services to enrich data you already have!

One final item before I wrap up – if you want to learn more about Azure Cognitive Services then you can do it for free and without the need for an Azure Subscription. Microsoft Learn has a range of modules you can complete that covers this area. Access them online using just a browser.

Happy Days ! 😎

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay