VeeFriends.CRM 2.0.58

dotnet add package VeeFriends.CRM --version 2.0.58
NuGet\Install-Package VeeFriends.CRM -Version 2.0.58
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VeeFriends.CRM" Version="2.0.58" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VeeFriends.CRM --version 2.0.58
#r "nuget: VeeFriends.CRM, 2.0.58"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VeeFriends.CRM as a Cake Addin
#addin nuget:?package=VeeFriends.CRM&version=2.0.58

// Install VeeFriends.CRM as a Cake Tool
#tool nuget:?package=VeeFriends.CRM&version=2.0.58

VeeFriends.CRM

This package has nothing todo with VeeFriends.com or Gary Vaynerchuk or NFTs.

Nuget

Installation

$ dotnet add package VeeFriends.CRM

Usage

This SDK is a very opinionated OData Microsoft Dynamics 365 SDK. It is designed to be used with your own CRM instance.

  1. Supply your CRM host
  2. Supply your CRM credentials
  3. Supply your CRM entities
  4. Supply your CRM anayltics key (power apps) (optional)
  5. Build the client
var client = new CrmClientBuilder()
    .AddCrmVersion()
    .AddCrmHost(host)
    .AddCredentials(clientId, clientSecret, tenantId)
    .AddEntity<SampleUserModel>()
    .AddAnalytics(anayltics)
    .Build();	

Next, get your entity context.

var context = client.For<SampleUserModel>();

Note: In order for models to be used with the SDK, they must inherit from CrmModel and be supplied with a class attribute [CrmEntity('contacts', 'contactid')] The first parameter is the collection name and the second is the primary key or identifier of the entity.

Here's an example contact entity.

[CrmEntity("contacts", "contactid")]
public class SampleUserModel : CrmModel
{
    [JsonPropertyName("contactid")]
    public Guid Id { get; set; }

    [JsonPropertyName("firstname")]
    public string? FirstName { get; set; }

    [JsonPropertyName("lastname")]
    public string? LastName { get; set; }
}

Next, you can use the context to query your CRM.

var users = await context
	.QueryAsync(x => x.FirstName == "Gary");

Feel free to explore the other methods.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.58 1,791 4/17/2024
2.0.57 1,109 3/18/2024
2.0.56 83 3/15/2024
2.0.55 7,356 2/7/2024
2.0.54 1,688 1/23/2024
2.0.53 4,442 11/29/2023
2.0.52 95 11/29/2023
2.0.51 96 11/29/2023
2.0.50 96 11/29/2023
2.0.49 2,508 10/10/2023
2.0.48 6,437 8/8/2023
2.0.47 118 7/7/2023
2.0.45 2,952 6/29/2023
2.0.44 117 6/29/2023
2.0.43 110 6/29/2023
2.0.42 108 6/29/2023
2.0.41 134 6/29/2023
2.0.40 124 6/29/2023
2.0.39 134 6/28/2023
2.0.38 110 6/28/2023
2.0.37 315 6/27/2023
2.0.36 109 6/27/2023
2.0.35 174 6/27/2023
2.0.34 106 6/27/2023
2.0.33 115 6/26/2023
2.0.32 156 6/9/2023
2.0.30 121 6/9/2023
2.0.29 118 6/9/2023
2.0.28 115 6/9/2023
2.0.27 125 6/9/2023
2.0.26 119 6/9/2023
2.0.25 131 6/9/2023
2.0.22 125 6/9/2023
2.0.21 215 5/31/2023
2.0.19 186 5/26/2023
2.0.18 120 5/26/2023
2.0.17 127 5/26/2023
2.0.16 125 5/25/2023
2.0.15 126 5/24/2023
2.0.14 129 5/24/2023
2.0.13 125 5/24/2023
2.0.12 122 5/24/2023
2.0.11 119 5/24/2023
2.0.10 117 5/24/2023
2.0.9 116 5/24/2023
2.0.8 118 5/24/2023
2.0.7 118 5/24/2023
2.0.6 114 5/24/2023
2.0.5 128 5/24/2023
2.0.4 122 5/24/2023
2.0.3 116 5/24/2023