Querying an Attachment to Return Attachment Contents
You can query an attachment to return the attachment contents by using the
inlineattachment parameter. By setting the
inlineattachment parameter to true, it returns the
Res
Attachment Id
field. The returned value of this field is the attachment
contents, returned as a Base64 encoded string. The following is a truncated example of
this returned value:
<Res_spcAttachment_spcId>SW4gdGhlIGV4YW1wbGUgYmVsb3csIHdlIGRlbGV0ZSBhIHNpbm...</Res_spcAttachment_spcId>
URI: http://ServerName:port/siebel/v1.0/data/AttachmentDocIO/SR%20Resolution%20Item/88-1YPFR1?inlineattachment=True
HTTP Method: GET
Accept: application/xml
Authorization: Basic
Request body: None
-
Response body:
<?xml version="1.0" ?> <response> <ResFileDeferFlg>R</ResFileDeferFlg> <ResFileName>SatAttXML</ResFileName> <Solution_spcType>Resolution Item</Solution_spcType> <ResFileExt>jpg</ResFileExt> <Internal_spcPublish_spcFlag></Internal_spcPublish_spcFlag> <Sent></Sent> <Res_spcAttachment_spcId>SW4gdGhlIGV4YW1wbGUgYmVsb3csIHdlIGRlbGV0ZSBhIHNpbm...</Res_spcAttachment_spcId> <Name>88-1YPFR1</Name> <Created_spcBy_spcName>SADMIN</Created_spcBy_spcName> <ResFileSrcType>FILE</ResFileSrcType> <Comment></Comment> <ResFileSize>140</ResFileSize> <Id>88-1YPFR1</Id> <ResFileDockReqFlg>N</ResFileDockReqFlg> <Updated_spcBy_spcName>SADMIN</Updated_spcBy_spcName> <ResFileDockStatFlg>E</ResFileDockStatFlg> <ResFileAutoUpdFlg>Y</ResFileAutoUpdFlg> <Description></Description> <ResFileDate>09/30/2021 07:36:55</ResFileDate> <ResFileSrcPath></ResFileSrcPath> <Link> <rel>self</rel> <href>https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1YPFR1</href> <name>SR Resolution Item</name> </Link> <Link> <rel>canonical</rel> <href>https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1YPFR1</href> <name>SR Resolution Item</name> </Link> <Link> <rel>child</rel> <href>https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1YPFR1/Catalog Category</href> <name>Catalog Category</name> </Link> </response>