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
| Name | Description | Type | Additional 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]| Name | Description | Type | Additional 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": "dc5cec33-237c-4dc6-aaee-15001e2a5b17",
"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>dc5cec33-237c-4dc6-aaee-15001e2a5b17</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>