admin管理员组

文章数量:1400037

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
Add a comment  | 

1 Answer 1

Reset to default 0

Array variable

the expression

@concat(concat('''',replace(join(variables('CurrentObjects'), ''''),'''',''',''')),'''')

Output

I Hope this helps.

本文标签: azureADF expression array conversion to single quoted and comma separated stringStack Overflow