POST api/CreateObjectAndField
Request Information
URI Parameters
None.
Body Parameters
DSMSalesforceCreateObjectRequestName | Description | Type | Additional information |
---|---|---|---|
login | clsLoginDetail |
None. |
|
fieldList | Collection of SFDCFieldList |
None. |
|
objectName | string |
None. |
|
createLayout | boolean |
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": [ { "FieldName": "sample string 1", "Type": "sample string 2" }, { "FieldName": "sample string 1", "Type": "sample string 2" } ], "objectName": "sample string 1", "createLayout": true }
application/xml, text/xml
Sample:
<DSMSalesforceCreateObjectRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DSMTMetaAPI.Models"> <createLayout>true</createLayout> <fieldList> <SFDCFieldList> <FieldName>sample string 1</FieldName> <Type>sample string 2</Type> </SFDCFieldList> <SFDCFieldList> <FieldName>sample string 1</FieldName> <Type>sample string 2</Type> </SFDCFieldList> </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 1</objectName> </DSMSalesforceCreateObjectRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DSMSalesforceObjectResultName | Description | Type | Additional information |
---|---|---|---|
objectList | Collection of DSMSalesforceObjectList |
None. |
|
error | string |
None. |
|
success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "objectList": [ { "objectName": "sample string 1", "objectAPIName": "sample string 2", "ObjectType": "sample string 3" }, { "objectName": "sample string 1", "objectAPIName": "sample string 2", "ObjectType": "sample string 3" } ], "error": "sample string 1", "success": true }
application/xml, text/xml
Sample:
<DSMSalesforceObjectResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DSMTMetaAPI.Models"> <error>sample string 1</error> <objectList> <DSMSalesforceObjectList> <ObjectType>sample string 3</ObjectType> <objectAPIName>sample string 2</objectAPIName> <objectName>sample string 1</objectName> </DSMSalesforceObjectList> <DSMSalesforceObjectList> <ObjectType>sample string 3</ObjectType> <objectAPIName>sample string 2</objectAPIName> <objectName>sample string 1</objectName> </DSMSalesforceObjectList> </objectList> <success>true</success> </DSMSalesforceObjectResult>