I am new to Logic Apps so this might be a very basic question.

Here is what I have done,

I have created a very basic Logic App which will trigger when a new item is created in SharePoint List and send an email.

Logic App creates JSON file behind the scene and when I looked at it I can see the list name is not mentioned but list id is being captured. 

If I deploy this via the PowerShell to the next environment(TEST/PROD) this will not work.

So my question is how can I update my logic so that it will work with next environment(TEST/PROD) 

**Updated on 2/13**

So based on feedback I have updated trigger path from hard code value to the parameterized value

OLD

```
  "triggers": {
    "When_a_file_is_created_or_modified_(properties_only)": {
      "type": "ApiConnection",
      "inputs": {
        "host": {
          "connection": {
            "name": "@parameters('$connections')['sharepointonline']['connectionId']"
          }
        },
        "method": "get",
        "path": "path": "/datasets/@{encodeURIComponent(encodeURIComponent('https://orgname.sharepoint.com/sites/mysite'))}/tables/@{encodeURIComponent(encodeURIComponent('7c7e9f92-5705-462a-9bfb-28985e4fa5b6'))}/onupdatedfileitems"
      },
      "recurrence": {
        "frequency": "Hour",
        "interval": 1
      },
      "splitOn": "@triggerBody()?['value']"
    }

```

NEW

```
  "triggers": {
    "When_a_file_is_created_or_modified_(properties_only)": {
      "type": "ApiConnection",
      "inputs": {
        "host": {
          "connection": {
            "name": "@parameters('$connections')['sharepointonline']['connectionId']"
          }
        },
        "method": "get",
        "path": "/datasets/@{encodeURIComponent(encodeURIComponent([parameters('SiteUrl')]))}/tables/@{encodeURIComponent(encodeURIComponent([parameters('LibraryId')]))}/onupdatedfileitems"
      },
      "recurrence": {
        "frequency": "Hour",
        "interval": 1
      },
      "splitOn": "@triggerBody()?['value']"
    }

```

After I made this change got below error in deployment.

```
"error": {
  "code": "InvalidTemplate",
  "message": "The template validation failed: 'The template trigger 'When_a_file_is_created_or_modified_(properties_only)' at line '1' and column '280' is not valid: \"Unable to parse template language expression 'encodeURIComponent(encodeURIComponent([parameters('SiteUrl')]))': expected token 'Identifier' and actual 'LeftSquareBracket'.\".'."
}

```