Querying Multiple or All Attachments in an Account

You can retrieve the details of all attachments associated with a record, in this example, Account Attachment is queried in the Account record. The response is a JSON array, where each element of the array contains attachment details, such as Name, ID, Size, and so on. It also returns the Res Attachment Id field, the value of which is a link for users to download the file.

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

  • HTTP Method: GET

  • Accept: application/json

  • Authorization: Basic

  • Request body: None

  • Response body:

    {
      "items": [
        {
          "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": "",
          "Res Attachment Id": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M7F?fields=Res 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"
            }
          ]
        },
        {
          "AccntFileSize": "105553",
          "AccntFileName": "Tesrtttxtttt1",
          "Comment": "",
          "Account Id": "1-5GZO",
          "Id": "88-1X5M75",
          "AccntFileDate": "09/15/2021 23:17:31",
          "AccntFileDockStatFlg": "E",
          "AccntFileSrcType": "FILE",
          "AccntFileAutoUpdFlg": "Y",
          "AccntFileDockReqFlg": "N",
          "AccntFileExt": "txt",
          "AccntFileDeferFlg": "R",
          "AccntFileSrcPath": "",
          "Res Attachment Id": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M75?fields=Res Attachment Id",
          "Link": [
            {
              "rel": "self",
              "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M75",
              "name": "Account Attachment"
            },
            {
              "rel": "canonical",
              "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M75",
              "name": "Account Attachment"
            },
            {
              "rel": "parent",
              "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO",
              "name": "Account"
            }
          ]
        }
      ],
      "Link": {
        "rel": "self",
        "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment",
        "name": "Account Attachment"
      }
    }