Oracle CRM On Demand REST API Developer's Guide > Using the Oracle CRM On Demand REST API > Retrieving Oracle CRM On Demand Resources >

Retrieving Oracle CRM On Demand Child Resources


You can retrieve Oracle CRM On Demand child resources by sending an HTTP GET request to the resource's URL.

The following details are for a request to retrieve a child Opportunities resource on the Oracle CRM On Demand Server:

  • URL: https://<host>/OnDemand/user/Rest/latest/Accounts/1QA2-LXMA3/child/Opportunities/1QA2-22HIFC?fields=OpportunityName
  • 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
  • Location: https://<host>/OnDemand/user/Rest/latest/Accounts/ZSXV-2345/child/Opportunities
  • Response body:

{
  "Opportunities": [
    {
       "OpportunityName": "ENAME3",
       "links": {
          "self": {
          "rel": "self",
          "href": "/Accounts/ZSXV-2345/child/Opportunities/ABCD-1234"
          },
       "canonical": {
          "rel": "canonical",
          "href": "/Opportunities/ABCD-1234"
          },
       "parent": {
          "rel": "parent",
          "href": "/Accounts/ZSXV-2345"
          }
       "CustomObjects15": {
         "rel": "child",
         "href": "/OnDemand/user/Rest/latest/Opportunities/ABCD-1234/child/CustomObjects15"
         }
       }
    }
  ]
}

Oracle CRM On Demand REST API Developer's Guide, Release 33 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.