Siebel Open UI, Tools, Scripting and EAI (MOSC)

MOSC Banner

Attachment ID missing from Rest API response

edited Aug 15, 2022 9:46AM in Siebel Open UI, Tools, Scripting and EAI (MOSC) 2 commentsAnswered

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center