Hi, I’m Nirav đź‘‹

🌏 Living and working in Canada

🧑‍💼 Microsoft 365 Developer at 2ToLead.

đź’» SharePoint Specialist | React Developer | Power Platform Enthusiast

đź’˝ Always learning, experimenting, and finding better ways to get things done

More…

Generated using [OG Image Playground by Vercel](https://og-playground.vercel.app/)

Create a Custom Declarative Agent with open-source API

Back in November 2024, Microsoft introduced new AI-powered agents in Microsoft 365 Copilot. Declarative agents in Microsoft 365 Copilot are a type of AI assistant that helps businesses automate tasks and workflows by following predefined instructions and using enterprise data. They work within tools like Teams, Word, and PowerPoint to boost productivity. For example, a customer service agent can provide real-time order updates using an API plugin, to improve support quality. ...

January 6, 2025 Â· 9 min Â· 1737 words Â· Nirav Raval

How to Use PowerShell Start-Job for Background Tasks

PowerShell is one of my favorite tool when it comes to automation. It has lot of functionalities and one of its cool features is Start-Job. This will let you run tasks in the background while you keep using PowerShell for other things. Start-Job is ideal to use when … Tasks take a long time to complete You want to avoid module conflicts by isolating them in separate jobs You need to resolve assembly conflicts by running jobs in isolated processes How to Use Start-Job I will try to explain this with a simple example below. ...

December 18, 2024 Â· 2 min Â· 307 words Â· Nirav Raval

forEach vs for Loops for Async Operations in JavaScript

Well, today I learnt an important lesson. 🤔 The Problem In a recent coding effort, I found myself faced with the classic choice between JavaScript’s forEach and for… loops. As I was iterating through an array of data, I realized that my code required asynchronous operations. Async/Await in forEach: Initially, I opted for the simplicity of forEach, but soon hit a roadblock. Despite my attempts to use async/await within the loop, I encountered unexpected behaviour. The asynchronous nature of forEach proved to be a block which led to unhandled promises and unpredictable results. Here’s what I was using: ...

November 29, 2024 Â· 1 min Â· 197 words Â· Nirav Raval