Querying a Child Level Attachment

You can query a child attachment to return both the details of the child attachment, and a link to download the child attachment. In this example, the request queries a child attachment through the child integration component Account Attachment, which is attached to Account. The response contains details of Account Attachment and a link to download the attachment with the value Accnt Attachment Id. In this example, the first instance of Account in the URI refers to the Account Business Object. The second instance refers to the Account Business Component within that Business Object. The child of the Account Business Component is the Account Attachment Business Component. These all map to the out of the box Base Account Integration Object.

  • URI: http://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account%20Attachment/88-1X5M7F

  • HTTP Method: GET

  • Accept: application/json

  • Authorization: Basic

  • Request body: None

  • Response body:
    {
      "AccntFileSize": "10720448",
      "AccntFileName": "AccountChildHuge",
      "Comment": "",
      "Account Id": "1-5GZO",
      "Id": "88-1X5M7F",
      "AccntFileDate": "09/16/2021 02:02:39",
      "AccntFileDockStatFlg": "E",
      "AccntFileSrcType": "FILE",
      "AccntFileAutoUpdFlg": "Y",
      "AccntFileDockReqFlg": "N",
      "AccntFileExt": "txt",
      "AccntFileDeferFlg": "R",
      "AccntFileSrcPath": "",
      "Accnt Attachment Id": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M7F?fields=Accnt Attachment Id",
      "Link": [
        {
          "rel": "self",
          "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M7F",
          "name": "Account Attachment"
        },
        {
          "rel": "canonical",
          "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M7F",
          "name": "Account Attachment"
        },
        {
          "rel": "parent",
          "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO",
          "name": "Account"
        }
      ]
    }