1
0
Fork 0

Bugfix for returned value

This commit is contained in:
Jason Williams 2016-06-28 19:01:34 -06:00
parent 8a196e7682
commit c73c915ae9
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ Public Function SPListItem(SharepointUrl As String, ListName As String, ListData
If objXMLHTTP.Status = 200 Then
Set xmlhttpResponse = objXMLHTTP.responseXML
CreateSPItem = CInt(xmlhttpResponse.SelectSingleNode("//UpdateListItemsResult//Results//Result//z:row").Attributes.getNamedItem("ows_ID").Text)
SPListItem = CInt(xmlhttpResponse.SelectSingleNode("//UpdateListItemsResult//Results//Result//z:row").Attributes.getNamedItem("ows_ID").Text)
Else
CreateSPItem = -1
SPListItem = -1
End If
Set objXMLHTTP = Nothing