I have a pipeline variable CurrentObjects that I need to pass to a notebook parameter as a string.
I am currently using: @join(variables('CurrentObjects'), ', ')
This returns: "object1, object2"
I need to return "'object1', 'object2'"
I tried using concat(''')..., but it gave error: String start single quote has no closing quote
I have a pipeline variable CurrentObjects that I need to pass to a notebook parameter as a string.
I am currently using: @join(variables('CurrentObjects'), ', ')
This returns: "object1, object2"
I need to return "'object1', 'object2'"
I tried using concat(''')..., but it gave error: String start single quote has no closing quote
Share Improve this question asked Mar 24 at 18:36 WardakyWardaky 11 bronze badge 1- Can you provide the value of Currentobjects variable and the exact error image? – Rakesh Govindula Commented Mar 24 at 19:04
1 Answer
Reset to default 0Array variable
the expression
@concat(concat('''',replace(join(variables('CurrentObjects'), ''''),'''',''',''')),'''')
Output
I Hope this helps.