Querying the Details of a Top Level Attachment
You can retrieve the details of an attachment by using its record ID. The following request
queries for the attachment with the ID: 88-1YPBGI . This is done through the integration
component named SR Resolution Item
in the integration object
AttachmentDocIO
. The response returns the attachment details, such as Name,
ID, Size, and so on. It also returns the Res Attachment Id
field, the value
of which is a link for users to download the file. In the URI below AttachmentDocIO refers to
a Siebel Business Object that maps to the AttachmentDocIO Integration Object. SR Resolution
Item is a Business Component in the AttachmentDocIO Business Object. It maps to an Integration
Component in the AttachmentDocIO Integration Object.
-
URI: http://ServerName:port/siebel/v1.0/data/AttachmentDocIO/SR%20Resolution%20Item/88-1YPBGI
-
HTTP Method: GET
-
Accept: application/xml
-
Content-Type: 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>https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1YPBGI?fields=Res Attachment Id</Res_spcAttachment_spcId> <Name>88-1YPBGI</Name> <Created_spcBy_spcName>SADMIN</Created_spcBy_spcName> <ResFileSrcType>FILE</ResFileSrcType> <Comment></Comment> <ResFileSize>140</ResFileSize> <Id>88-1YPBGI</Id> <ResFileDockReqFlg>N</ResFileDockReqFlg> <Updated_spcBy_spcName>SADMIN</Updated_spcBy_spcName> <ResFileDockStatFlg>E</ResFileDockStatFlg> <ResFileAutoUpdFlg>Y</ResFileAutoUpdFlg> <Description></Description> <ResFileDate>09/30/2021 02:40:05</ResFileDate> <ResFileSrcPath></ResFileSrcPath> <Link> <rel>self</rel> <href>https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/88-1YPBGI</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-1YPBGI</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-1YPBGI/Catalog Category</href> <name>Catalog Category</name> </Link> </response>