LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

How to pass parameter that is an array of ints

Open seplee opened this issue 2 years ago • 7 comments

Describe the Bug with repro steps

I want to pass an array of ints as a parameter to a recurrence trigger. None of the ways I have tried work.

  1. Create an appsetting with one of the following contents:- [1,2,3]
  • ["1","2","3"]
  • [/"1/",/"2/",/"3/"]
  1. Create a parameter that references the appsetting
  2. Reference the parameter in the workflow
  • use either "@parameters('lee-test-recurrence-parameter')" or "@{parameters('lee-test-recurrence-parameter')}"

I had also tried to pass a parameter that evaluated to a string into the array. This did not seem to work either.

  • "\"2\",\"3\",\"4\",\"5\",\"7\",\"6\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\",\"20\",\"21\",\"22\",\"23\",\"0\""

image

What type of Logic App Is this happening in?

Standard (Portal)

Are you using new designer or old designer

New Designer

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": {},
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "Recurrence": {
                "recurrence": {
                    "frequency": "Day",
                    "interval": 1,
                    "schedule": {
                        "hours": "@{parameters('lee-test-recurrence-parameter')}",
                        "minutes": [
                            10,
                            15,
                            20,
                            25,
                            30,
                            35,
                            40,
                            45,
                            50,
                            55
                        ]
                    },
                    "timeZone": "US Eastern Standard Time"
                },
                "type": "Recurrence"
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos

This is the code generated by the designer when three hours are selected:

image

Here are some of the methods I tried:

image

Browser

Brave

Additional context

No response

AB#25183193

seplee avatar Sep 15 '23 19:09 seplee