Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

stevkato
Kilo Explorer

Hi - I'm trying to access the incident table via web services but have not been successful. Here is the code:

Dim rProxy As New ConsoleApplication1.wp1.ServiceNow
Dim rGetKeys As New ConsoleApplication1.wp1.getKeys
Dim rGetKeysResponse As ConsoleApplication1.wp1.getKeysResponse

rGetKeys.number = "INC11470"

rGetKeysResponse = rProxy.getKeys(rGetKeys)
Console.WriteLine("testing.")
Console.WriteLine(rGetKeysResponse.sys_id)
Console.ReadLine()

I keep getting NullReferenceException was unhandled at the rGetKeysResponse.sys_id line. Has anyone else been able to get this to work? I have been able to do the same thing in perl and it was very easy, but perhaps I don't understand the data coming back and I don't know how to access it using VB.

1 Comment