Azure / Azure/LogicAppsUX

Logic app - Consumption - Initialize Object Variable - values are expressesions of type boolean but when saved the value gets quoted.

Open
#8,911 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
111
Forks
109
Avg merge
1d 23h
Merged PRs (30d)
20

Description

### Severity

P1 - Critical (Blocking production)

### Describe the Bug with repro steps

I have a variable in my consumption logic app that is of type Object. I have three keys and each key should be a boolean value, for example:

{
"changeValues": true,
"scheduleChange": true,
"cohortChange": false
}

The values, when i initialise the variable are expressions from values passed on the payload. When I use an expression and save the logic app, I noticed that if i refresh the page or navigate away from the editor and return my expression is quoted. Tests in the Logic app using the values fail because they expect booleans and not a string.

The workaround was to initialise with an empty object then use Set Variable to set the object with the expressions. Using set does NOT quote the expressions.

Lastly, when you compare the values for both the initialize and the set they are exactly the same.

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

Consumption (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

```json

```

### Screenshots or Videos

Image
Image

### Environment

Google chrome Version 144.0.7559.133 (Official Build) (64-bit)

### 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.