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

Oracle Integration Cloud - Libraries - JavaScript functions

edited Mar 15, 2024 2:12PM in Integration 3 comments

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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