POST api/GetRecordFromSalesforce

Request Information

URI Parameters

None.

Body Parameters

DSMSalesforceDataRequest
NameDescriptionTypeAdditional information
login

clsLoginDetail

None.

fieldList

Collection of string

None.

condition

string

None.

objectName

string

None.

orderBy

string

None.

Recordlimit

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
  },
  "fieldList": [
    "sample string 1",
    "sample string 2"
  ],
  "condition": "sample string 1",
  "objectName": "sample string 2",
  "orderBy": "sample string 3",
  "Recordlimit": 4
}

application/xml, text/xml

Sample:
<DSMSalesforceDataRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DSMTMetaAPI.Models">
  <Recordlimit>4</Recordlimit>
  <condition>sample string 1</condition>
  <fieldList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </fieldList>
  <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>
  <objectName>sample string 2</objectName>
  <orderBy>sample string 3</orderBy>
</DSMSalesforceDataRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

clsSFDCDatatableResult
NameDescriptionTypeAdditional information
error

string

None.

dttbl

DataTable

None.

Response Formats

application/json, text/json

Sample:
{
  "error": "sample string 1",
  "dttbl": null
}

application/xml, text/xml

Sample:
<clsSFDCDatatableResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DSMTMetaAPI.Models">
  <dttbl i:nil="true" />
  <error>sample string 1</error>
</clsSFDCDatatableResult>