New C# Package to interact with ServiceNow API

Emerson Bottero
Tera Contributor

New ServiceNow Library create for those how need to interact with ServiceNow API programmatically

https://github.com/emersonbottero/ServiceNow.Core

There is a loot of cool features and to use is as easy as


var ServiceNow = new ServiceNow(config);

//Creating an table instance
var usersTable = ServiceNow
    .UsingTable<User>()
    .Limit(2)
    .WithQuery(x => x.Name.Contains("Branco") && x.Country == BR");

//Getting data
var users = await usersTable.ToListAsync();


User class has attributes used in the background

[SNowTable("sys_user")]

public class User : ServiceNowBaseModel
{
            public string Country { get; set; }
            public string State { get; set; }
            public string Name { get; set; }
            [JsonPropertyName("u_city_code")]
            public string CityCode { get; set; }
            public string Email { get; set; }

            [JsonPropertyName("user_name")]
            public string LanID { get; set; }
}

 

If there is a better place to promote it plz tell me.

1 REPLY 1

The SN Nerd
Giga Sage
Giga Sage

I would suggest sharing on ServiceNow Share and the sndevs slack channel.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022