Querying Multiple Attachments to Return Content
You can query multiple or all attachments associated with an account to return the attachment
contents in the response body. In this example, by using the
inlineattachment parameter, and setting it to true, it queries all the
attachments associated with Account
. The response is a JSON array in which
each element of the array contains details of the attachment such as Name, ID, Size, and so
on. It also returns the Res Attachment Id
field. The returned value of this
field is the attachment contents, returned as a Base64 encoded string.
-
URI: http://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account%20Attachment/?inlineattachment=True
-
HTTP Method: GET
-
Accept: application/json
-
Authorization: Basic
-
Request body: None
-
Response body:
{ "items": [ { "AccntFileSize": "109", "AccntFileName": "multi_atta_File_acc_1", "Comment": "", "Account Id": "1-5GZO", "Id": "88-1X62NN", "AccntFileDate": "09/20/2021 23:28:26", "AccntFileDockStatFlg": "E", "AccntFileSrcType": "FILE", "AccntFileAutoUpdFlg": "Y", "AccntFileDockReqFlg": "N", "AccntFileExt": "txt", "AccntFileDeferFlg": "R", "AccntFileSrcPath": "", "Res Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw==", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X62NN", "name": "Account Attachment" }, { "rel": "canonical", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X62NN", "name": "Account Attachment" }, { "rel": "parent", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO", "name": "Account" } ] }, { "AccntFileSize": "109", "AccntFileName": "multi_atta_File_acc_3", "Comment": "", "Account Id": "1-5GZO", "Id": "88-1X5M6B", "AccntFileDate": "09/20/2021 23:28:26", "AccntFileDockStatFlg": "E", "AccntFileSrcType": "FILE", "AccntFileAutoUpdFlg": "Y", "AccntFileDockReqFlg": "N", "AccntFileExt": "txt", "AccntFileDeferFlg": "R", "AccntFileSrcPath": "", "Res Attachment Id": "RmlsZSBmb3IgYWNjb3VudCBhdHRhY2htZW50IGZvciBmYWNjb3VudCBudW1iZXIgMw==", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M6B", "name": "Account Attachment" }, { "rel": "canonical", "href": "https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1X5M6B", "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?inlineattachment=True", "name": "Account Attachment" }