Querying an Attachment to Return Attachment Contents
You can query an attachment to return attachment 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. The following is a truncated example of this returned
value:
"Res Attachment Id": "ACFsH29qUDaf8RRRQAfebtnP516d+2Fn/AIaK8Q89fs3/AKTQ0UUi0f/Z..."
URI: http://ServerName:port/siebel/v1.0/data/AttachmentDocIO/SR%20Resolution%20Item/88-1X701B?inlineattachment=true
HTTP Method: GET
Accept: application/json
Authorization: Basic
Request body: None
-
Response body:
{ "ResFileDeferFlg": "R", "ResFileName": "Att25test", "Solution Type": "Resolution Item", "ResFileExt": "jpg", "Internal Publish Flag": "", "Sent": "", "Res Attachment Id": "ACFsH29qUDaf8RRRQAfebtnP516d+2Fn/AIaK8Q89fs3/AKTQ0UUi0f/Z...", "Name": "88-1X701B", "Created By Name": "SADMIN", "ResFileSrcType": "FILE", "Comment": "", "ResFileSize": "184206", "Id": "88-1X701B", "ResFileDockReqFlg": "N", "Updated By Name": "SADMIN", "ResFileDockStatFlg": "E", "ResFileAutoUpdFlg": "Y", "Description": "", "ResFileDate": "09/28/2021 02:15:24", "ResFileSrcPath": "", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X701B", "name": "SR Resolution Item" }, { "rel": "canonical", "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X701B", "name": "SR Resolution Item" }, { "rel": "child", "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1X701B/Catalog Category", "name": "Catalog Category" } ] }