You need to sign in to do that
Don't have an account?
.update Code example please!!!!
I've been trying unsuccessfully to update a record using the examples provided by salesforce. Could someone PLEASE supply a working VB.net example :
Dim contacts() As String
Dim updateContact As sforce.Contact = New sforce.Contact
'need to have the id so that web service knows which account to update
updateContact.Id = ConID ' my variable that holds the ID of the contact I want to update.
'set a new value for the name property
updateContact.LastName = "Eltesto"
'create one that will throw an error
Dim errorContact As sforce.Contact = New sforce.Contact
errorContact.Id = "SLFKJLFKJ"
errorContact.fieldsToNull = New String() {"Name"}
'call the update passing an array of object
Dim saveResults() As sforce.SaveResult = binding.update(New sforce.sObject() {updateContact, errorContact})
Error message is:
"size of request is too large"
Thanks
Hi OT,
We should really take a look at the raw soap messages being sent.
There is a new version of the sforce Explorer that can capture you soap messages for you here:
http://prdownloads.sourceforge.net/sforce/sforceExplorerSetup.zip?download
Hi Dave,
I'm not sure what this app does?!
Is this what you're looking for?
"<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<SessionHeader xmlns="urn:partner.soap.sforce.com">
<sessionId>cszXEMRm4OMCNLYLZ6YGb8RSFDT39OsN0SRzHFAXk2YXPj4Nzq8VL0rLVOKgDaAMzNkajymrkUcmuddTcjQ5kzteaH1xyGi1</sessionId>
</SessionHeader>
</soap:Header>
<soap:Body>
<describeSObject xmlns="urn:partner.soap.sforce.com">
<sObjectType>contact</sObjectType>
</describeSObject>
</soap:Body>
</soap:Envelope>"