---
title: "Swimburger - Blog - Crm"
description: "Swimburger.net is a blog about .NET, cloud, web development, and whatever comes across Swimburger's plate. Swimburger.net is run by Niels Swimberghe."
canonical: "https://swimburger.net/blog/crm"
---

[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/gqldf41f/powershell-and-crm-square.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/gqldf41f/powershell-and-crm-square.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/gqldf41f/powershell-and-crm-square.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/gqldf41f/powershell-and-crm-square.png 500w" sizes="250px" width="250" height="250" alt="CRM and PowerShell logo" decoding="async" loading="lazy" style="background-color:#fafafa"></picture>

## Use PowerShell to communicate with Dynamics CRM using the .NET XRM SDK

4/20/2020 - Dynamics

If you've developed client applications or plugins for Dynamics CRM before, you are familiar with the CRM/XRM DLL's. You may have gotten those DLL's from the CRM installation, the SDK zip, or the NuGet package. Another way to interact with the CRM DLL's is through PowerShell. PowerShell is built upon .NET meaning you can call exactly the same CRM libraries from PowerShell as from .NET applications.



](/blog/dynamics/use-powershell-to-communicate-with-dynamics-crm-using-the-dotnet-xrm-sdk)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/unxjciar/powershell-and-crm-square.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/unxjciar/powershell-and-crm-square.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/unxjciar/powershell-and-crm-square.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/unxjciar/powershell-and-crm-square.png 500w" sizes="250px" width="250" height="250" alt="CRM and PowerShell logo" decoding="async" loading="lazy" style="background-color:#fafafa"></picture>

## PowerShell snippet: Get optionset value/labels from Dynamics CRM Entity/Attribute

4/20/2020 - Dynamics

Instead of having to use the CRM interface to copy all the labels and values manually, you can save yourself a lot of time using this PowerShell script. Using the following script file named "GetOptionSet.ps1", you can list all the value/label pairs for a given Entity + OptionSet-Attribute:



](/blog/dynamics/powershell-snippet-get-optionset-value-labels-from-dynamics-crm-entity-attribute)
