jeffhollan / LogicAppTemplateCreator

Script to convert Logic Apps into templates for deployment
MIT License
144 stars 74 forks source link

Extracting Recurrence trigger parameter in Interval throws exception #139

Open chris-w-dev opened 1 year ago

chris-w-dev commented 1 year ago

When extracting a Recurrence trigger with a parameter in the Interval field, an exception is thrown because the interval property is expected to be an integer and not a string.

     "parameters": {
        "RecurrenceInterval": {
          "defaultValue": 3,
          "type": "Int"
        }
      },
      "triggers": {
        "Recurrence": {
          "recurrence": {
            "frequency": "Minute",
            "interval": "@parameters('RecurrenceInterval')"
          },
          "type": "Recurrence"
        }
      }

Exception: The input string '@parameters('RecurrenceInterval')' was not in a correct format.