Attachment ID missing from Rest API response
Hi,
I am trying to get the base64 of a attachment file(Service Request Attachment BC) using Rest API - Fetch command.
BO: Service Request
BC: Service Request(Primary)
BC: Service Request Attachment
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Basic ***********************");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://your_ai_server:9001/siebel/v1.0/service/Service Request/Service Request/sample_sr_id/Service Request Attachment/sample_sr_attach_id", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
I am not getting Activity Attachment Id - which holds the base64 of the Attachment under SR.