POST api/UpsertRecord

Request Information

URI Parameters

None.

Body Parameters

DSMSalesforceUpsertRequest
NameDescriptionTypeAdditional information
login

clsLoginDetail

None.

objectDetail

Collection of clsSalesForceObjectDetail

None.

batchSize

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "login": {
    "sessionID": "sample string 1",
    "serverURL": "sample string 2",
    "orgID": "sample string 3",
    "userName": "sample string 4",
    "password": "sample string 5",
    "securityToken": "sample string 6",
    "connectionString": "sample string 7",
    "MetadataServerURL": "sample string 8",
    "sessionCheck": true
  },
  "objectDetail": [
    {
      "Id": "sample string 1",
      "ObjectName": "sample string 2",
      "sourceId": "sample string 3",
      "fieldName": [
        "sample string 1",
        "sample string 2"
      ],
      "fieldValue": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "Id": "sample string 1",
      "ObjectName": "sample string 2",
      "sourceId": "sample string 3",
      "fieldName": [
        "sample string 1",
        "sample string 2"
      ],
      "fieldValue": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "batchSize": 1
}

application/xml, text/xml

Sample:
<DSMSalesforceUpsertRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DSMTMetaAPI.Models">
  <batchSize>1</batchSize>
  <login>
    <MetadataServerURL>sample string 8</MetadataServerURL>
    <connectionString>sample string 7</connectionString>
    <orgID>sample string 3</orgID>
    <password>sample string 5</password>
    <securityToken>sample string 6</securityToken>
    <serverURL>sample string 2</serverURL>
    <sessionCheck>true</sessionCheck>
    <sessionID>sample string 1</sessionID>
    <userName>sample string 4</userName>
  </login>
  <objectDetail>
    <clsSalesForceObjectDetail>
      <Id>sample string 1</Id>
      <ObjectName>sample string 2</ObjectName>
      <fieldName xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </fieldName>
      <fieldValue xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </fieldValue>
      <sourceId>sample string 3</sourceId>
    </clsSalesForceObjectDetail>
    <clsSalesForceObjectDetail>
      <Id>sample string 1</Id>
      <ObjectName>sample string 2</ObjectName>
      <fieldName xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </fieldName>
      <fieldValue xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </fieldValue>
      <sourceId>sample string 3</sourceId>
    </clsSalesForceObjectDetail>
  </objectDetail>
</DSMSalesforceUpsertRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

clsSFDCUpsertResult
NameDescriptionTypeAdditional information
error

string

None.

Id

string

None.

resultList

Collection of string

None.

IdList

Collection of string

None.

totalRecord

integer

None.

totalSuccessRecord

integer

None.

totalFailRecord

integer

None.

dataSource

DataTable

None.

success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "error": "sample string 1",
  "Id": "sample string 2",
  "resultList": [
    "sample string 1",
    "sample string 2"
  ],
  "IdList": [
    "sample string 1",
    "sample string 2"
  ],
  "totalRecord": 3,
  "totalSuccessRecord": 4,
  "totalFailRecord": 5,
  "dataSource": null,
  "success": true
}

application/xml, text/xml

Sample:
<clsSFDCUpsertResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DSMTMetaAPI.Models">
  <Id>sample string 2</Id>
  <IdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </IdList>
  <dataSource i:nil="true" />
  <error>sample string 1</error>
  <resultList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </resultList>
  <success>true</success>
  <totalFailRecord>5</totalFailRecord>
  <totalRecord>3</totalRecord>
  <totalSuccessRecord>4</totalSuccessRecord>
</clsSFDCUpsertResult>