Querying the Details of an Attachment
You can retrieve the details of an attachment by using its record ID. The following request
queries for the attachment with the ID: 1CE-77YE . 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/1CE-77YE
-
HTTP Method: GET
-
Accept: application/json
-
Authorization: Basic
-
Request body: None
-
Response body:
{ "ResFileDeferFlg": "R", "ResFileName": "Air Compressor Valve Repair and Replace", "Solution Type": "Resolution Item", "ResFileExt": "doc", "Internal Publish Flag": "", "Sent": "", "Res Attachment Id": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/1CE-77YE?fields=Res Attachment Id", "Name": "1CE-77YE", "Created By Name": "ESADMIN", "ResFileSrcType": "FILE", "Comment": "", "ResFileSize": "3382", "Id": "1CE-77YE", "ResFileDockReqFlg": "N", "Updated By Name": "ESADMIN", "ResFileDockStatFlg": "E", "ResFileAutoUpdFlg": "Y", "Description": "", "ResFileDate": "10/31/2001 03:19:15", "ResFileSrcPath": "", "Link": [ { "rel": "self", "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/1CE-77YE", "name": "SR Resolution Item" }, { "rel": "canonical", "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/1CE-77YE", "name": "SR Resolution Item" }, { "rel": "child", "href": "https://ServerName:port/siebel/v1.0/data/SR Resolution Item/SR Resolution Item/1CE-77YE/Catalog Category", "name": "Catalog Category" } ] }