Querying a Child Attachment to Return Attachment Contents
You can query a child attachment to return its contents by using the
inlineattachment query parameter in the request URI. By setting the
inlineattachment parameter to true, it returns the Res
Attachment Id
field. The returned value of this field is the attachment details,
returned as a Base64 encoded string.
URI: http://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account%20Attachment/88-1X62NN?inlineattachment=True
HTTP Method: GET
Accept: application/json
Authorization: Basic
Request body: None
-
Response body:
{ "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": "", "Accnt 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" } ] }