New C# Package to interact with ServiceNow API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 05:19 PM
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.
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 05:57 PM
I would suggest sharing on ServiceNow Share and the sndevs slack channel.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022