Windward Engine API Reference
upsert Method
See Also  Send comments on this topic.
WindwardReportsDrivers.SalesForce Namespace > SforceService Class : upsert Method




externalIDFieldName
sObjects

Glossary Item Box

Syntax

Visual Basic (Declaration) 
<SoapHeaderAttribute(MemberName="SessionHeaderValue", 
   Direction=SoapHeaderDirection.In, 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="DebuggingHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="CallOptionsValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AssignmentRuleHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.Out, 
   MemberName="LimitInfoHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="OwnerChangeOptionsValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AllOrNoneHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="StreamingEnabledHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="DisableFeedTrackingHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.Out, 
   MemberName="DebuggingInfoValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AllowFieldTruncationHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="EmailHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="MruHeaderValue", 
   Required=True)>
<SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="PackageVersionHeaderValue", 
   Required=True)>
<SoapDocumentMethodAttribute(RequestNamespace="urn:partner.soap.sforce.com", 
   ResponseNamespace="urn:partner.soap.sforce.com", 
   Use=SoapBindingUse.Literal, 
   ParameterStyle=SoapParameterStyle.Wrapped)>
Public Function upsert( _
   ByVal externalIDFieldName As String, _
   ByVal sObjects() As sObject _
) As UpsertResult()
Visual Basic (Usage)Copy Code
Dim instance As SforceService
Dim externalIDFieldName As String
Dim sObjects() As sObject
Dim value() As UpsertResult
 
value = instance.upsert(externalIDFieldName, sObjects)
C# 
[SoapHeaderAttribute(MemberName="SessionHeaderValue", 
   Direction=SoapHeaderDirection.In, 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="DebuggingHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="CallOptionsValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AssignmentRuleHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.Out, 
   MemberName="LimitInfoHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="OwnerChangeOptionsValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AllOrNoneHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="StreamingEnabledHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="DisableFeedTrackingHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.Out, 
   MemberName="DebuggingInfoValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AllowFieldTruncationHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="EmailHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="MruHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="PackageVersionHeaderValue", 
   Required=true)]
[SoapDocumentMethodAttribute(RequestNamespace="urn:partner.soap.sforce.com", 
   ResponseNamespace="urn:partner.soap.sforce.com", 
   Use=SoapBindingUse.Literal, 
   ParameterStyle=SoapParameterStyle.Wrapped)]
public UpsertResult[] upsert( 
   string externalIDFieldName,
   sObject[] sObjects
)
Managed Extensions for C++ 
[SoapHeaderAttribute(MemberName="SessionHeaderValue", 
   Direction=SoapHeaderDirection.In, 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="DebuggingHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="CallOptionsValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AssignmentRuleHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.Out, 
   MemberName="LimitInfoHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="OwnerChangeOptionsValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AllOrNoneHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="StreamingEnabledHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="DisableFeedTrackingHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.Out, 
   MemberName="DebuggingInfoValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AllowFieldTruncationHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="EmailHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="MruHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="PackageVersionHeaderValue", 
   Required=true)]
[SoapDocumentMethodAttribute(RequestNamespace="urn:partner.soap.sforce.com", 
   ResponseNamespace="urn:partner.soap.sforce.com", 
   Use=SoapBindingUse.Literal, 
   ParameterStyle=SoapParameterStyle.Wrapped)]
public: UpsertResult*[]* upsert( 
   string* externalIDFieldName,
   sObject*[]* sObjects
) 
C++/CLI 
[SoapHeaderAttribute(MemberName="SessionHeaderValue", 
   Direction=SoapHeaderDirection.In, 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="DebuggingHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="CallOptionsValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AssignmentRuleHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.Out, 
   MemberName="LimitInfoHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="OwnerChangeOptionsValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AllOrNoneHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="StreamingEnabledHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="DisableFeedTrackingHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.Out, 
   MemberName="DebuggingInfoValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="AllowFieldTruncationHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="EmailHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="MruHeaderValue", 
   Required=true)]
[SoapHeaderAttribute(Direction=SoapHeaderDirection.In, 
   MemberName="PackageVersionHeaderValue", 
   Required=true)]
[SoapDocumentMethodAttribute(RequestNamespace="urn:partner.soap.sforce.com", 
   ResponseNamespace="urn:partner.soap.sforce.com", 
   Use=SoapBindingUse.Literal, 
   ParameterStyle=SoapParameterStyle.Wrapped)]
public:
array<UpsertResult^>^ upsert( 
   String^ externalIDFieldName,
   array<sObject^>^ sObjects
) 

Parameters

externalIDFieldName
sObjects

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family

See Also

© 2019 All Rights Reserved.