function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
onCollectonCollect 

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

SuperfellSuperfell
need to add contact.testID__cSpecified = true, otherwise .NET will not send the contact.testID__c field up in the request.
onCollectonCollect
thank you very much.