Retrieving Only Resource Field Values Using the onlyData Parameter
You can use the onlyData REST API request parameter with an HTTP GET request to retrieve only field values for Oracle CRM On Demand REST API resources and collections. The onlyData response excludes links.
The following details are for a request to retrieve field value information about an Account resource:
URL: https://<host>/OnDemand/user/Rest/028/Accounts/1QA2-21ATBR?onlyData=true
HTTP Method: GET
Content-Type: None
Request body: None
The following are the details for the response to a successful request:
HTTP Code: 200
Content-Type: application/vnd.oracle.adf.resource+json
Response body:
{
"Accounts":[{
"Id":"1QA2-21ATBR"}
]
}
The following details are for a request to retrieve field value information about an Accounts collection:
URL: https://<host>/OnDemand/user/Rest/028/Accounts?onlyData=true
HTTP Method: GET
Content-Type: None
Request body: None
The following are the details for the response to a successful request:
HTTP Code: 200
Content-Type: application/vnd.oracle.adf.resource+json
Response body:
{
"Accounts":[{
"Id":"1QA2-21ATBR"},{
"Id":"1QA2-21ATBY"},{
"Id":"1QA2-21AWXV"},{
"Id":"1QA2-21AWY3"},{
"Id":"1QA2-21RR8P"},{
"Id":"1QA2-21RR8R"},{
"Id":"1QA2-21UP19"},{
"Id":"1QA2-21USBV"},{
"Id":"1QA2-22789P"},{
"Id":"1QA2-227E7M"},{
"Id":"1QA2-227J34"},{
"Id":"1QA2-227JBS"},{
"Id":"1QA2-227JBT"},{
"Id":"1QA2-227JBV"},{
"Id":"1QA2-227Q47"},{
"Id":"1QA2-229J2J"},{
"Id":"1QA2-22EH7L"},{
"Id":"1QA2-22Y0V1"}],
"_contextInfo":{
"limit":100,
"offset":0,
"lastpage":true
}
}