POST api/log/crm/entity/retrieve

Request Information

URI Parameters

None.

Body Parameters

EntityRetrieveData
NameDescriptionTypeAdditional information
EntityId

globally unique identifier

Required

EntityLogicalName

string

Required

InitiatingSystemUserId

globally unique identifier

Required

SystemUserId

globally unique identifier

Required

AccessType

CRMPluginMessage

Required

CRMServer

string

Required

AccessTimeUTC

date

Required

InsertResult

Result

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityId": "2b9184c3-e88e-4e31-8206-992915105d3f",
  "EntityLogicalName": "sample string 2",
  "InitiatingSystemUserId": "2b8e6f40-d0dc-4714-9f6a-9c1ec2970109",
  "SystemUserId": "2ac6ca21-9420-4188-9255-5a769067cd0d",
  "AccessType": 0,
  "CRMServer": "sample string 5",
  "AccessTimeUTC": "2024-11-17T09:54:04.1207998+00:00",
  "InsertResult": {
    "Message": "sample string 1",
    "Success": true,
    "Ex": {
      "ClassName": "System.Exception",
      "Message": null,
      "Data": null,
      "InnerException": null,
      "HelpURL": "sample string 1",
      "StackTraceString": null,
      "RemoteStackTraceString": null,
      "RemoteStackIndex": 0,
      "ExceptionMethod": null,
      "HResult": 3,
      "Source": "sample string 2",
      "WatsonBuckets": null
    }
  }
}

application/xml, text/xml

Sample:
<EntityRetrieveData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tandem.WebAPI.AccessLog.Models">
  <AccessTimeUTC>2024-11-17T09:54:04.1207998+00:00</AccessTimeUTC>
  <AccessType>DEFAULT</AccessType>
  <CRMServer>sample string 5</CRMServer>
  <EntityId>2b9184c3-e88e-4e31-8206-992915105d3f</EntityId>
  <EntityLogicalName>sample string 2</EntityLogicalName>
  <InitiatingSystemUserId>2b8e6f40-d0dc-4714-9f6a-9c1ec2970109</InitiatingSystemUserId>
  <InsertResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tandem.Xrm">
    <d2p1:Ex xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
      <Message i:nil="true" xmlns="" />
      <Data i:nil="true" xmlns="" />
      <InnerException i:nil="true" xmlns="" />
      <HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
      <StackTraceString i:nil="true" xmlns="" />
      <RemoteStackTraceString i:nil="true" xmlns="" />
      <RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
      <ExceptionMethod i:nil="true" xmlns="" />
      <HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
      <Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
      <WatsonBuckets i:nil="true" xmlns="" />
    </d2p1:Ex>
    <d2p1:Message>sample string 1</d2p1:Message>
    <d2p1:Success>true</d2p1:Success>
  </InsertResult>
  <SystemUserId>2ac6ca21-9420-4188-9255-5a769067cd0d</SystemUserId>
</EntityRetrieveData>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EntityRetrieveData'.

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
requestid

string

None.

success

boolean

None.

message

string

None.

data

Object

None.

status

string

None.

errors

Collection of ResponseError

None.

warnings

Collection of ResponseWarning

None.

Response Formats

application/json, text/json

Sample:
{
  "requestid": "sample string 1",
  "success": true,
  "message": "sample string 3",
  "data": {},
  "status": "Retrieved",
  "errors": [
    {
      "code": 1,
      "message": "sample string 2"
    },
    {
      "code": 1,
      "message": "sample string 2"
    }
  ],
  "warnings": [
    {
      "code": 1,
      "message": "sample string 2"
    },
    {
      "code": 1,
      "message": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tandem.IO.WebAPI.Models">
  <data />
  <errors>
    <ResponseError>
      <code>1</code>
      <message>sample string 2</message>
    </ResponseError>
    <ResponseError>
      <code>1</code>
      <message>sample string 2</message>
    </ResponseError>
  </errors>
  <message>sample string 3</message>
  <requestid>sample string 1</requestid>
  <status>Retrieved</status>
  <success>true</success>
  <warnings>
    <ResponseWarning>
      <code>1</code>
      <message>sample string 2</message>
    </ResponseWarning>
    <ResponseWarning>
      <code>1</code>
      <message>sample string 2</message>
    </ResponseWarning>
  </warnings>
</APIResponse>