最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure - ADF expression: array conversion to single quoted and comma separated string - Stack Overflow

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论