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

pass variables in epmautomate command server side groovy scripting

Hi Team

We are trying to maskdata via epmautomate command vis groovy BR using server side scripting in ePM Cloud. However, unable to pass the parameter -f in the empautomate command in the BR.

please advise how to achieve this?

class ConnectionDetails {
static String username = "user"
static String password = "pass"
static String url = "https://epmdummyepm.eu-amsterdam-1.ocs.oraclecloud.com/epmcloud"
}

EpmAutomate automate = getEpmAutomate()
EpmAutomateStatus status = automate.execute("login", ConnectionDetails.username, ConnectionDetails.password , ConnectionDetails.url)
if (status.getStatus() != 0) {
throwVetoException("Login status: ${status.getOutput()}")
}
println "First Login Successful"

automate.execute("maskData","[-f]")

println "doneeee"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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