Oracle Integration Cloud - Libraries - JavaScript functions
Hi guys,
I'm having a problem with JS within OIC. I need to create a simple function that will return all values if condition is met. Like so -
function get_email_data_prc(p_email_template) {
if (p_email_template === 'METADATA_NOT_FOUND') {
x_email_subject = '- MW Job has Failed';
p_status = 'test error';
} else if (p_email_template === 'NO_FILE_FOUND') {
x_email_subject = '- MW Job has Failed';
p_status = 'test success';
}
return x_email_subject;
}
and I need this function to return more then just x_email_subject but also p_status, but Oracle does not seem to allow that inside of the function. Have you had an issue like that?
0