LogicAppsUX
LogicAppsUX copied to clipboard
Expression contains single slash in UI, but double slash in Code View
Severity
P3 - Medium (Minor functionality affected)
Describe the Bug with repro steps
In the designer when adding an expression that contains a forward slash, the UI displays a single slash, but the code view displays two slashes.
Expected behavior:
- The value in code view should reflect the same value as in the UI. In the UI we see \r\n
split(replace(body('Get_blob_content_(V2)'),'~',''), '\r\n')
Actual behavior:
- The code view contains double slashes whereas the UI only shows one slash. In the code view we see \r\n
@split(replace(body('Get_blob_content_(V2)'),'~',''), '\r\n')
Steps to reproduce:
- Add a Compose action
- In the inputs add an expression
- Paste "split(replace(body('Get_blob_content_(V2)'),'~',''), '\r\n')" as the expression value and click 'Add.'
- Compare UI with the Code View
What type of Logic App Is this happening in?
Standard (Portal)
Are you experiencing a regression?
No response
Which operating system are you using?
Windows
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"actions": {
"Compose": {
"type": "Compose",
"inputs": "split(replace(body('Get_blob_content_(V2)'),'~',''), '\\r\\n')",
"runAfter": {
"Get_blob_content_(V2)": [
"SUCCEEDED"
]
}
},
"Get_blob_content_(V2)": {
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"referenceName": "azureblob"
}
},
"method": "get",
"path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('test'))}/files/@{encodeURIComponent(encodeURIComponent('test'))}/content",
"queries": {
"inferContentType": true
}
},
"runAfter": {}
}
},
"outputs": {},
"triggers": {
"When_an_HTTP_request_is_received": {
"type": "Request",
"kind": "Http"
}
}
},
"kind": "Stateful"
}
Screenshots or Videos
Value in the UI:
Value in the Code View:
Environment
- Browser: Edge Version 140.0.3485.54
- Extension Version: 2.50818.1.11
- Session ID: 33f79461df0a4f748555dafe45bd4234
Additional context
No response