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
contents, returned as a Base64 encoded string.
URI: http://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5SUL/Account%20Attachment/88-1YLSD3?inlineattachment=True
HTTP Method: GET
Accept: application/xml
Authorization: Basic
Request body: None
-
Response body:
<?xml version="1.0" ?> <response> <AccntFileSize>610</AccntFileSize> <AccntFileName>Input_Params</AccntFileName> <Comment></Comment> <Account_spcId>1-5GZO</Account_spcId> <Id>88-1YLSD3</Id> <AccntFileDate>08/19/2021 01:34:19</AccntFileDate> <AccntFileDockStatFlg>E</AccntFileDockStatFlg> <AccntFileSrcType>FILE</AccntFileSrcType> <AccntFileAutoUpdFlg>Y</AccntFileAutoUpdFlg> <AccntFileDockReqFlg>N</AccntFileDockReqFlg> <AccntFileExt>xml</AccntFileExt> <AccntFileDeferFlg>R</AccntFileDeferFlg> <AccntFileSrcPath></AccntFileSrcPath> <Accnt_spcAttachment_spcId>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZ...</Accnt_spcAttachment_spcId> <Link> <rel>self</rel> <href>https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1YLSD3</href> <name>Account Attachment</name> </Link> <Link> <rel>canonical</rel> <href>https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1YLSD3</href> <name>Account Attachment</name> </Link> <Link> <rel>parent</rel> <href>https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO</href> <name>Account</name> </Link> </response>