Querying a Child Level Attachment

You can query a child level attachment to return both the details of the child level attachment, and a link to download the child level attachment. In this example, the request queries a child level attachment through the child integration component Account Attachment, which is attached to an account. The response contains details of Account Attachment and a link to download the attachment with the value Accnt Attachment Id. In this example, the first instance of Account in the URI refers to the Account Business Object. The second instance refers to the Account Business Component within that Business Object. The child of the Account Business Component is the Account Attachment Business Component. These all map to the out of the box Base Account Integration Object.

  • URI: http://ServerName:port/siebel/v1.0/data/Account/Account/88-1X5SUL/Account%20Attachment/88-1YLSD3

  • HTTP Method: GET

  • Accept: application/xml

  • Content-Type: 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>https://ServerName:port/siebel/v1.0/data/Account/Account/1-5GZO/Account Attachment/88-1YLSD3?fields=Accnt Attachment Id</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>