Skip to content

Commit 17dae0c

Browse files
authored
Call out special character treatment difference between pipeline and data flow.
Fixes https://github.com/MicrosoftDocs/azure-docs/issues/121977.
1 parent 8fd4d19 commit 17dae0c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/data-factory/control-flow-expression-language-functions.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: data-factory
99
ms.subservice: orchestration
1010
ms.custom: synapse
1111
ms.topic: conceptual
12-
ms.date: 10/20/2023
12+
ms.date: 05/17/2024
1313
---
1414

1515
# Expressions and functions in Azure Data Factory and Azure Synapse Analytics
@@ -190,12 +190,14 @@ Corporation
190190

191191
### Escaping single quote character
192192

193-
Expression functions use single quote for string value parameters. Use two single quotes to escape a `'` character in string functions. For example, expression `@concat('Baba', '''s ', 'book store')` will return below result.
193+
Expression functions in pipelines use the single quote (_'_) to surround string value parameters. Use two consecutive single quote characters within a pipeline string expression to include a single quote. Here's an example: expression `@concat('Here is a double quote character: ". ', 'And here is a single quote character all within the same string: ''.')` will return the following result:
194194

195195
```
196-
Baba's book store
196+
Here is a double quote character: ". And here is a single quote character all within the same string: '.
197197
```
198198

199+
However, in data flow expressions, this syntax isn't supported. Instead, data flow expressions can be surrounded by either single or double quotes. Enclose text requiring single quotes within double quotes, and text requiring double quotes within single quotes, within string functions. If you require a string containing both single and double quotes, you can use `concat()` to merge two substrings that each contain either single quotes or double quotes. The data flow equivalent of the previous pipeline expression example would be `concat('Here is a double quote character: ". ', "And here is a single quote character all within the same string: '.")`. In a data flow, that expression will return the same result as the previous example for pipeline expressions.
200+
199201
### Tutorial
200202
This [tutorial](https://azure.microsoft.com/mediahandler/files/resourcefiles/azure-data-factory-passing-parameters/Azure%20data%20Factory-Whitepaper-PassingParameters.pdf) walks you through how to pass parameters between a pipeline and activity as well as between the activities. The tutorial specifically demonstrates steps for an Azure Data Factory although steps for a Synapse workspace are nearly equivalent but with a slightly different user interface.
201203

0 commit comments

Comments
 (0)