Skip to main content

Posts

Showing posts from May, 2024

Integrate Google Gemini into SPFx

This article will walk you through the process of effortlessly integrating Google Gemini into the SharePoint Framework (SPFx), so you can use its strong features within your SharePoint environment. Whether you want to optimize content management, or increase overall user engagement, this step-by-step tutorial will provide you with the information and resources you need to get started with Google Gemini in SPFx. These steps will also be useful for integrating Google Gemini Pro AI with React application.  Get the API key: Initially, you'll require an API key. This key serves as your identification to Google Gemini, enabling authentication on your behalf. Create a API Key from Google AI Studio Click here Now follow the steps mentioned below: Create a SPFx web part.  Installing the " GoogleGenerativeAI " package for Node.js is necessary in order to utilize the Gemini API in your SPFx Webpart npm install @google/generative-ai Now we need to initialize the generative model, add

The Use and Significance of SharePoint Content Type

In this post, I discuss SharePoint content types, their usefulness, and a case in which I used content types to create a bespoke solution to meet a demand. Scenario where I used Content Type to achieve the requirement: Recently, I encountered a situation that demanded extracting data from Excel and storing it in a SharePoint list for specific tasks. To tackle this, I opted to automate the creation of SharePoint lists via code. These lists required over 30 columns each. Instead of repetitively creating identical columns whenever an Excel file was uploaded, I devised a solution. I crafted a Content Type, incorporating the necessary columns, and then published it. Upon list creation, I programmatically associated the Content Type with it.  This approach avoids the inefficiency and impracticality of manually generating columns via code for every instance, especially when they remain consistent across uploads. What is SharePoint Content Type? Content type is a reusable set of settings that