none
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

    https://social.msdn.microsoft.com/Forums/en-US/9f4d7519-fe1d-4082-bad3-5c0d63180b73/adf-concating-string-cant-publish?forum=AzureDataFactory#bedf6f15-9f8f-4578-af07-a940fa10be01

    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). http://sqldataside.blogspot.ca/ (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.

    Thanks.

    Thursday, September 13, 2018 2:27 AM