Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Programmatic Copy SR using Smart Actions

Summary:

Trigger Copy SR using a Button

Content (please ensure you mask any confidential information):

We have a requirement to create a button called 'Copy SR' which when clicked will perform the Copy SR action

We tried implementing this requirement by calling the SDA-CopyServiceRequest-serviceRequests Smart Action using a web service call

const response = await Actions.callRest(executionContext, {
endpoint: 'oracle_cx_serviceUI:serviceRequests/do_executeAction_serviceRequests-smartActions',
contentType: 'application/vnd.oracle.adf.action+json',
uriParams: {
'serviceRequests_Id': <srNumber>,
'serviceRequests_smartActions_Id': <smartActionId>,
}
});

We got the error "Cannot execute UI based Action : SDA-CopyServiceRequest-serviceRequests" when we ran the API

We then used the below API call

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!