- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2017 04:49 AM
Hello,
I want to creating incident from excel to Service Now?
I found solutions for Perl but I need to create incidents from excel using VBA. Is it possible?
Thank you in advance for your help
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2018 02:18 PM
hi Simon,
u can refer to some of the article on internet to invoke webservices (REST) via VBA, then execute it from excel/word etc.
VBA invoke REST webservices Call
ServiceNow (enable http POST from other domain)
ServiceNow Get URL on rest syntax
I had briefly tried one GET Record and it is working.
Dim strPostResponse As String
Dim objRequest As New MSXML2.XMLHTTP
objRequest.Open "GET", "https://YOUR_SERVICENOW_INSTANCE_NAME.com/api/now/table/incident?sysparm_limit=1", False
objRequest.Send strPostSting
strPostResponse = objRequest.responseText
MsgBox strPostResponse
Note: You will need to add reference to MS XML 3.0 (or any other version installed) in order for MSXML2.XMLHTTP objective being recognize in Excel VBA.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2018 02:18 PM
hi Simon,
u can refer to some of the article on internet to invoke webservices (REST) via VBA, then execute it from excel/word etc.
VBA invoke REST webservices Call
ServiceNow (enable http POST from other domain)
ServiceNow Get URL on rest syntax
I had briefly tried one GET Record and it is working.
Dim strPostResponse As String
Dim objRequest As New MSXML2.XMLHTTP
objRequest.Open "GET", "https://YOUR_SERVICENOW_INSTANCE_NAME.com/api/now/table/incident?sysparm_limit=1", False
objRequest.Send strPostSting
strPostResponse = objRequest.responseText
MsgBox strPostResponse
Note: You will need to add reference to MS XML 3.0 (or any other version installed) in order for MSXML2.XMLHTTP objective being recognize in Excel VBA.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2018 04:46 AM
Thank you for your help.