Forum Discussion

krupalibshah's avatar
krupalibshah
Contributor
8 years ago

Does xpath or json path get evaluated in pipeline parameters?

I am trying to see if I can retrieve the payload when a pipeline is exposed as a task?

Example:
Payload : 10

Pipeline parameter:
p = /a/b OR $.a.b

I want ‘p’ to take the value as 10 (in this case) and show up under pipeline parameter when ‘capture’ is enabled.

Is this supported? If yes, how?

10 Replies

  • You cannot set the parameters values once inside the pipeline. They are ready-only.

    You can set them only from outside passing values to them either externally or from a different pipeline.

    • krupalibshah's avatar
      krupalibshah
      Contributor

      Yeah, I got that.

      What I am trying to do is if the parameter is given an expression will it evaluate it?

      If we give an xpath or json path (whose value will be in the document that the pipeline receives) will the xpath be populated with correct values?

  • Thanks!

    But this is not what I am aiming to do, I want to check if I give an xpath or json path in pipeline parameters (under edit pipeline) will they be evaluated and give me corresponding result?