1

I am trying to pass text with dynamic content as a parameter into a pipeline (execute pipeline activity).

As a super simple example, I want the input to my pipeline to be a timestamp, utcnow(). Here are my results:

I've noticed:
If I put @utcnow() in a set variable activity and set the execute pipeline parameter to that variable it works.

If I put @utcnow() (or @{utcnow()}) in the main parameter and set the execute pipeline parameter to that parameter it does not work. I get that string "utcnow()" as the result.

Is there anything that I am missing here? I definitely feel like I've done this successfully before.

3
  • 1
    what's the parameter data type? Commented Aug 4, 2020 at 0:56
  • The parameter is a string type. Commented Aug 4, 2020 at 15:34
  • Hi @Robert Riley, please correct me if I understand you wrong in the answer. Commented Aug 5, 2020 at 1:38

1 Answer 1

6

If I understand your question correctly, the issue is caused by the main parameter(pipeline parameter) doesn't support expression or functions.

For example, we could pass the value from variable to pipeline active parameter, and it works well, because variable support expression/functions: enter image description here

When the main pipeline only contains an Execute Pipeline active, we pass the value from main parameter(pipeline parameter) to the Execute Pipeline parameter: enter image description here

enter image description here

When we debug the pipeline, we need pass the value of main parameter: enter image description here

The value of pipeline parameter only support the String value, then function utcNow() or @{utcnow() will considered as the String.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for the very well laid out answer, we are on the same page.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.