Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active September 8, 2017 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/e8eb3fb1bdfc086a169dacb6cf9f06d7 to your computer and use it in GitHub Desktop.
Save justinyoo/e8eb3fb1bdfc086a169dacb6cf9f06d7 to your computer and use it in GitHub Desktop.
Mixing Parameters in Logic Apps with ARM Template
"triggers": {
"OnFileCreatedOrUpdatedInFolder": {
"type": "ApiConnection",
"recurrence": {
"frequency": "Minute",
"interval": 3
},
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['sharepointonline']['connectionId']"
}
},
"method": "get",
// Replace hard-coded site name with parameter value.
"path": "/datasets/@{encodeURIComponent(encodeURIComponent(parameters('spoSiteName')))}/triggers/onupdatedfile",
"queries": {
// Replace hard-coded folder ID with parameter value.
"folderId": "[parameters('spoUploadLocation')]",
"includeFileContent": true,
"inferContentType": true
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment