Skip to content

Commit

Permalink
Logic App JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniehack committed Mar 8, 2024
1 parent 58a2c9c commit 988f6b6
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 0 deletions.
78 changes: 78 additions & 0 deletions Logic Apps/MSGraphCall-NoBearer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"HTTP_-_Microsoft_Graph_Call": {
"description": "This step will call the Microsoft Graph URL passed from PowerBI and use the bearer token in the Headers for Authorization.",
"inputs": {
"authentication": {
"audience": "@triggerBody()?['Audience']",
"clientId": "@triggerBody()?['AppID']",
"secret": "@triggerBody()?['SecretID']",
"tenant": "@triggerBody()?['TenantID']",
"type": "ActiveDirectoryOAuth"
},
"headers": {
"content-type": "application/json"
},
"method": "GET",
"uri": "@triggerBody()?['GraphUrl']"
},
"runAfter": {},
"runtimeConfiguration": {
"paginationPolicy": {
"minimumItemCount": 100000
}
},
"type": "Http"
},
"Response_-_Pass_back_the_Results": {
"description": "Finally, the results from the call, are passed back to PowerBI.",
"inputs": {
"body": "@body('HTTP_-_Microsoft_Graph_Call')",
"statusCode": 200
},
"kind": "Http",
"runAfter": {
"HTTP_-_Microsoft_Graph_Call": [
"Succeeded"
]
},
"type": "Response"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {},
"triggers": {
"manual": {
"description": "When the logic app is triggered by the URL, it must be passed a Bearer token (from the PowerBI Function) and the URL of the Microsoft Graph API you wish to call.",
"inputs": {
"schema": {
"properties": {
"AppID": {
"type": "string"
},
"Audience": {
"type": "string"
},
"GraphUrl": {
"type": "string"
},
"SecretID": {
"type": "string"
},
"TenantID": {
"type": "string"
}
},
"type": "object"
}
},
"kind": "Http",
"type": "Request"
}
}
},
"parameters": {}
}
63 changes: 63 additions & 0 deletions Logic Apps/MSGraphCall.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"HTTP_-_Microsoft_Graph_Call": {
"description": "This step will call the Microsoft Graph URL passed from PowerBI and use the bearer token in the Headers for Authorization.",
"inputs": {
"headers": {
"Authorization": "@triggerBody()?['Bearer']",
"content-type": "application/json"
},
"method": "GET",
"uri": "@triggerBody()?['GraphUrl']"
},
"runAfter": {},
"runtimeConfiguration": {
"paginationPolicy": {
"minimumItemCount": 100000
}
},
"type": "Http"
},
"Response_-_Pass_back_the_Results": {
"description": "Finally, the results from the call, are passed back to PowerBI.",
"inputs": {
"body": "@body('HTTP_-_Microsoft_Graph_Call')",
"statusCode": 200
},
"kind": "Http",
"runAfter": {
"HTTP_-_Microsoft_Graph_Call": [
"Succeeded"
]
},
"type": "Response"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {},
"triggers": {
"manual": {
"description": "When the logic app is triggered by the URL, it must be passed a Bearer token (from the PowerBI Function) and the URL of the Microsoft Graph API you wish to call.",
"inputs": {
"schema": {
"properties": {
"Bearer": {
"type": "string"
},
"GraphUrl": {
"type": "string"
}
},
"type": "object"
}
},
"kind": "Http",
"type": "Request"
}
}
},
"parameters": {}
}

0 comments on commit 988f6b6

Please sign in to comment.