GET api/Entity/{id}?fetchXML={fetchXML}&primaryAttribute={primaryAttribute}&retrieveMultiple={retrieveMultiple}

Retrieves Entity based on fetch xml primmary attribute and ide
Possible Service Responses:
200/OK - match found and list of account records are in the body of the response.
404/Accounts Not Found - no accounts found matching specified name.
500/Internal Server - unexpected server error, details in the body of the response.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fetchXML

System.String

Required

primaryAttribute

System.String

Required

id

System.String

Required

retrieveMultiple

System.Boolean

Required

Body Parameters

None.

Response Information

Resource Description

List of Accounts

System.Collections.Generic.List`1[Microsoft.Xrm.Sdk.Entity]
NameDescriptionTypeAdditional information
Id

System.String

None.

UpdateEntityId

System.String

None.

LogicalName

System.String

None.

Attributes

System.Collections.Generic.List`1[Altai.Web.Services.Models.Attribute]

None.

Response Formats

application/json, text/json

Sample:
[
  null,
  {
    "LogicalName": "sample string 1",
    "Id": "71509955-f0b9-4240-8c84-9b154d6503ed",
    "Attributes": [],
    "EntityState": 0,
    "FormattedValues": [],
    "RelatedEntities": [],
    "RowVersion": "sample string 3",
    "KeyAttributes": []
  }
]

application/xml, text/xml

Sample:
<ArrayOfEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <Entity i:nil="true" />
  <Entity>
    <Attributes xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <EntityState>Unchanged</EntityState>
    <FormattedValues xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Id>71509955-f0b9-4240-8c84-9b154d6503ed</Id>
    <KeyAttributes xmlns:d3p1="http://schemas.microsoft.com/xrm/7.1/Contracts" xmlns:d3p2="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <LogicalName>sample string 1</LogicalName>
    <RelatedEntities xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <RowVersion>sample string 3</RowVersion>
  </Entity>
</ArrayOfEntity>