Example insert using Visual Basic .NET

A sample Visual Basic .NET program that inserts a core_company record.

Public Class Class1
    Shared  Sub Main()
         Dim proxyCompany  As New core_company.localhost.ServiceNow()
         Dim companyInsert  As New core_company.localhost.insert()
         Dim companyInsertResponse  As core_company.localhost.insertResponse
         With companyInsert
            .name =  "Test Company SKF 2"
            .contact =  "SKF"
            .customer =  True
            .customerSpecified =  True End With
        companyInsertResponse = proxyCompany.insert(companyInsert)
     End Sub End Class
Sample Visual Basic .NET project
Figure 1. Vbnet