9,309
edits
(use correct ' apostrophe) |
No edit summary |
||
Line 179: | Line 179: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| {entity} || determine the entity to retrieve, optionally, you can specify entity id to retrieve in the following format: account( | | {entity} || determine the entity to retrieve, optionally, you can specify entity id to retrieve in the following format: account(guid'300a4f0b-99dc-4ba5-95bd-d41abf61dc10′) | ||
|- | |- | ||
| {select} || determine attributes to retrieve, separated by comma | | {select} || determine attributes to retrieve, separated by comma | ||
Line 215: | Line 215: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| string value || “string”, or ' | | string value || “string”, or 'string' | ||
|- | |- | ||
| integer value || 0, 1, 2, …. | | integer value || 0, 1, 2, …. | ||
Line 230: | Line 230: | ||
|} | |} | ||
Sample URL: <code><nowiki>https://{organization}.app.resco.net/rest/v1/data/account?$select=name,address1_city,emailaddress1&$filter=name%20LIKE% | Sample URL: <code><nowiki>https://{organization}.app.resco.net/rest/v1/data/account?$select=name,address1_city,emailaddress1&$filter=name%20LIKE%20'C%'&$orderby=address1_city&$skip=2&$top=5</nowiki></code> | ||
Response: | Response: | ||
Line 349: | Line 349: | ||
Request: | Request: | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<Entity EntityName='account' [PrimaryKey= | <Entity EntityName='account' [PrimaryKey='name;address1_city']> | ||
<id>1607A7F7-C16F-4E19-849C-BAD37FF59F5C</id> | <id>1607A7F7-C16F-4E19-849C-BAD37FF59F5C</id> | ||
<name>My Name</name> | <name>My Name</name> | ||
Line 554: | Line 554: | ||
<Code>500</Code> | <Code>500</Code> | ||
<Reason>KeyNotFoundException</Reason> | <Reason>KeyNotFoundException</Reason> | ||
<Detail>The given attribute ' | <Detail>The given attribute 'revenue2' was not present in the entity metadata.</Detail> | ||
<StackTrace>…</StackTrace> | <StackTrace>…</StackTrace> | ||
</Fault> | </Fault> |