You need to sign in to do that
Don't have an account?
onCollect
modify a custom field in the Contact object
Hi,
I am trying to update custom field (i.e. . testID as number) in the Contact object using a call back store procedure. Code works fine but doesn't update the field . Below is my code. Any suggestions??
i have permission to modify the data.
thanks
contact.testID__c = CDbl(cmd.Parameters("@NewId").Value)
Dim saveResults() As SaveResult = binding.update(New sforce.sObject() {contact})
For j As Integer = 0 To saveResults.GetUpperBound(0)
Console.WriteLine("Item: " & j)
If saveResults(j).success Then
Console.WriteLine("An account with an id of: " & saveResults(0).id & " was updated." & vbCrLf)
Else
Console.WriteLine("Item " & j & " had an error updating.")
Console.WriteLine(" The error reported was: " & saveResults(j).errors(0).message & vbCrLf)
End If
Next
Superfell
need to add contact.testID__cSpecified = true, otherwise .NET will not send the contact.testID__c field up in the request.
onCollect
thank you very much.