Hi, I’m Nirav šŸ‘‹

šŸ‘Øā€šŸ’» Developer at 2ToLead.
šŸ”§ ReactJS | SPFx | Azure DevOps | PowerApps | Power Platform | PowerBI

šŸ“Œ Exploring New technologies, and building Smarter solutions

More…

Image for Conditional Mapping in ShareGate Using PnP PowerShell

Conditional Mapping in ShareGate Using PnP PowerShell

In my last blog post, I explained two ways to tackle conditional mapping in ShareGate. In this post, I’ll show you how to use the PnP PowerShell module to handle conditional mapping more efficiently. As I mentioned earlier, it’s not practical to rely on the ShareGate user interface for each site. That’s where I recommend a better approach -> using PnP PowerShell module. PnP PowerShell Script: No big deal! Here’s the scenario I mentioned earlier: you want to run a script that checks each item’s Status (a choice column in your SharePoint list), and if it’s set to ā€œPendingā€, the script should update it to ā€œApprovedā€. ...

April 11, 2025 Ā· 2 min Ā· 238 words Ā· Nirav Raval
Image for How to Achieve Conditional Mapping with ShareGate

Conditional Mapping in ShareGate – Is It Even Possible?

During a recent migration project, I worked with a customer who had a pretty unique requirement: they wanted to apply conditional mappings using ShareGate. At first, I thought, ā€œWait, what?ā€ Because what they were asking for just isn’t something ShareGate supports out of the box—neither through the UI nor the ShareGate PowerShell module. But after a bit of head-scratching (and lots of coffee ā˜•), I came up with a workaround to get the job done. ...

April 4, 2025 Ā· 3 min Ā· 534 words Ā· Nirav Raval
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