UMT360.Client
5.18.2020.1007
See the version list below for details.
dotnet add package UMT360.Client --version 5.18.2020.1007
NuGet\Install-Package UMT360.Client -Version 5.18.2020.1007
<PackageReference Include="UMT360.Client" Version="5.18.2020.1007" />
paket add UMT360.Client --version 5.18.2020.1007
#r "nuget: UMT360.Client, 5.18.2020.1007"
// Install UMT360.Client as a Cake Addin #addin nuget:?package=UMT360.Client&version=5.18.2020.1007 // Install UMT360.Client as a Cake Tool #tool nuget:?package=UMT360.Client&version=5.18.2020.1007
UMT360.Client
UMT360 offers this CSOM (client side object model) library for clients using UMT360.
This is a very short tutorial to let you get started fast. We will create a simple console application with .Net Framework and connect to the product to list project entities available in product.
Prerequisites
- UMT360 Solution deployed and configured
- Credentials and permissions to access application
- Visual Studio and .Net Framework v4.5
CSOM Client Test application
Create a new console app.
Opent Tools > NuGet Package Manager > Manage NuGet Packages for Solution…
Select Browse tab and insert
UMT360.Client
in search box.Click on our package then look in the right side panel and select the project where you want to install the library.
Click install button and review packages that will be installed, then accept the license.
In a few seconds we are ready to go.Add a CSOMConfig.cs class to project.
Import libraries:
using UMT360.Client; using UMT360.Client.Application;
Add class member variables to hold server url to pwa and context.
private string _serverUrl = "http://<server>/sites/pwa/"; private UMT360Context _appOnlyContext;
If you have credentials, go to SharePoint Central Admin <server_url>:<port> and grab you client_id, client_secret, realm, certificate.cer informations.
If you don't have, ask your administrator.Initialize the class with credentials
public CSOMConfig() { TokenHelper.InitializeAppConfiguration( "<client_id>", //clientid "", //clientSecret "<realm>", //realm "<issuer_id>", //issuerId @"C:\<path>\certificate.pfx", //get it from: http://<server>:<port>/ Central Admin "<certificate_password>", //certificate password "AAD for UMT360Online" //trusted provider name ); }
Configure a property with CSOM elevated context to be used later in CSOM calls.
/// <summary> /// Gets an elevated, app-only CSOM context /// </summary> protected UMT360Context AppOnlyContext { get { if (_appOnlyContext == null) { _appOnlyContext = new UMT360Context(_serverUrl); _appOnlyContext.AuthenticateWithClaims(); } return _appOnlyContext; } }
Create a new class, let's say FinancialEntities.cs, that inherits CSOMConfig. In this class we will add a method that reads all project entities from current pwa.
Notice! From now on, you don't needusing UMT360.Client.Application;
reference anymore.using UMT360.Client; namespace CSOM_client_test { public class FinancialEntities : CSOMConfig { /// <summary> /// Reads the Financial Entities Collection from CSOM server /// </summary> /// <returns></returns> public FinancialEntityCollection ReadFinancialEntities() { AppOnlyContext.ClearCache(); FinancialEntityCollection entities = AppOnlyContext.FinancialEntities; AppOnlyContext.Load(entities); AppOnlyContext.ExecuteQuery(); return entities; } } }
Back to main class, Program.cs and add
using UMT360.Client;
reference and create am instance of FinancialEntities than Use the method to read collection and iterate it to console output.// My class instance: FinancialEntities FinancialEntities csom = new FinancialEntities(); // Read collection of financial entities from CSOM FinancialEntityCollection entities = csom.ReadFinancialEntities(); //List entities foreach(FinancialEntity entity in entities) { Console.WriteLine($"Entity: {entity.Name}"); }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Microsoft.SharePointOnline.CSOM (>= 16.1.20518.12000)
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 | |
---|---|---|---|
5.27.2024.926 | 74 | 9/27/2024 | |
5.27.2024.830 | 108 | 8/30/2024 | |
5.27.2024.725 | 88 | 7/26/2024 | |
5.27.2024.627 | 109 | 6/28/2024 | |
5.27.2024.524 | 126 | 5/24/2024 | |
5.27.2024.223 | 146 | 2/23/2024 | |
5.26.2023.1025 | 161 | 10/27/2023 | |
5.26.2023.728 | 221 | 7/28/2023 | |
5.26.2023.622 | 185 | 6/23/2023 | |
5.26.2023.526 | 163 | 5/29/2023 | |
5.25.2023.427 | 185 | 4/28/2023 | |
5.25.2023.324 | 257 | 3/24/2023 | |
5.25.2023.223 | 282 | 2/24/2023 | |
5.24.2023.106 | 342 | 1/10/2023 | |
5.24.2022.1213 | 317 | 12/16/2022 | |
5.23.2022.909 | 433 | 9/9/2022 | |
5.23.2022.728 | 450 | 7/29/2022 | |
5.22.2022.329 | 489 | 3/31/2022 | |
5.21.2021.1203 | 757 | 12/3/2021 | |
5.21.2021.1108 | 1,040 | 11/18/2021 | |
5.20.2021.803 | 342 | 8/6/2021 | |
5.19.2021.402 | 619 | 4/8/2021 | |
5.18.2020.1007 | 469 | 10/7/2020 |
Added App Management capabilities