Skip to content

Select Action reverts map input on save #6650

Closed
@zzznz27

Description

@zzznz27

Describe the Bug with repro steps

  1. Create a select action
  2. Add an array to the "From" input
  3. Change the map to a text field and in double quotation marks add a reference to the item and any other characters youd like to update to the array item.

Designer View

Image

Code View

Image

  1. Save and run
  2. See output has created an array of updates array items

Image

  1. Reopen the designer and observe the double quotation marks have been removed and there is now a json validation error in the map field

Error

Image

What type of Logic App Is this happening in?

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

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "Select": {
                "type": "Select",
                "inputs": {
                    "from": "@triggerBody()?['resourceData']?['members@delta']",
                    "select": "@{item()?.id}<>1234"
                },
                "runAfter": {}
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "ADGroup_Webhook": {
                "type": "Request",
                "kind": "Http",
                "conditions": []
            }
        },
        "kind": "Stateful"
    }
}

Screenshots or Videos

No response

Browser

Edge

Additional context

There is a workaround for this issue by just adding the double quotes back in but it does occasionally cause issues when forgotten

I might just be using this action incorrectly but it is a fast way to flatten and modify array items without introducing a for loop. If it is just a validation bug that can be fixed it would be great to see this use case documented as a way to modify array items or create a new array from an Object arrays members without iterating each ones

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions