Bugfix for returned value
This commit is contained in:
parent
8a196e7682
commit
c73c915ae9
@ -34,9 +34,9 @@ Public Function SPListItem(SharepointUrl As String, ListName As String, ListData
|
|||||||
|
|
||||||
If objXMLHTTP.Status = 200 Then
|
If objXMLHTTP.Status = 200 Then
|
||||||
Set xmlhttpResponse = objXMLHTTP.responseXML
|
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
|
Else
|
||||||
CreateSPItem = -1
|
SPListItem = -1
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Set objXMLHTTP = Nothing
|
Set objXMLHTTP = Nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user