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

getPassword() not working what i am doing mistake here.

in Planning 18 comments

Summary:

Trying to get username and password and want use for epmautomate but getting error for getPassword()

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

Latest

Code Snippet (add any code snippets that support your topic, if applicable):

below code i am using

try {

  Connection planning = operation.application.getConnection('Loacal')

  def user = planning.getUserName()

  def url = planning.getUrl()

  def pass = planning.getPassword()

  println "Username: $user"

  println "url: $url"

  println "Password: $password"

} catch (Exception e) {

  println "An error occurred: $e.message"

  }

getting below error


A validation error was received from the Planning server.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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