If expression issue with pipeline parameters in ARM template RRS feed

  • Question

  • I am using a WebActivity in Azure data factory V2. I am trying to set the body of the POST with the following expression.

    Somehow it doesn't like the "@pipeline().parameters" and complains about it saying its invalid.

    "body": {
    "value": "[if(equals(@pipeline().parameters.notifyall, true), variables('emailall'), variables('emaildevonly'))]",
    "type": "Expression"

    Can you see any issues with this expression ?

    Wednesday, September 12, 2018 4:50 PM

All replies

  • this might be your answer

    You can not have space in your string, this is my experiance

    Sincerely Nik -- Please kindly mark the post(s) that answered your question and/or vote for the post(s). (SQL Tabular + PowerShell)

    Thursday, September 13, 2018 12:25 AM
  • Hi Kannan,

    The way you input value is not right. You should use string interpolation where expressions are wrapped in @{ ... }and modify it as :"[if(equals(@{pipeline().parameters.notifyall}, true), variables('emailall'), variables('emaildevonly'))]". Or you could also try to use Concat function.


    Thursday, September 13, 2018 2:27 AM