Azure / Azure/LogicAppsUX

Designer automatically adds curly brackets to my expressions, causing them to work incorrectly!

Open
#7,323 3 comments 0 reactions 1 assignee Claimed by @Eric-B-Wu View on GitHub
Dominant language
TypeScript
Stars
111
Forks
109
Avg merge
1d 23h
Merged PRs (30d)
20

Description

### Describe the Bug with repro steps

Whenever I do any modifications in a shape expression, the designer automatically puts all @ expressions into curly brackets, which is NOT expected, because it changes the code logic! It causes converting the values into text, with encoded control characters, i.e. treating the value as a plain text, while my goal is to pass valid JSON into a parameter.
Please stop doing this, as I'm losing a lot of time, doing the same kind of fix all over the time, again, and again and again!
Example:
1. I have an Azure function call earlier, which returns a JSON message as its response.
2. Now I need to pass this JSON as a parameter to another function call, so inside the message I have something like:
"body": "@body('XsltTransformV2.Processing')"
I save the code and it is fine. But later, I do a minor modification in another fragment of the same shape expression, and all of the sudden, the above changes automatically to this:
"body": "@{body('XsltTransformV2.Processing')}"
causing the whole JSON to be converted to text, and the subsequent function is unable to parse it correctly.

### What type of Logic App Is this happening in?

Consumption (Portal)

### Which operating system are you using?

Windows

### Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

### Workflow JSON

```json

```

### Screenshots or Videos

_No response_

### Browser

Mozilla Firefox

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.