GET api/Entity?fetchXML={fetchXML}

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

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": "7e8da9ce-b1aa-4c47-a025-ee3aad857d6f",
    "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>7e8da9ce-b1aa-4c47-a025-ee3aad857d6f</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>