-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogic_App_Workflow.json
63 lines (62 loc) · 1.78 KB
/
Logic_App_Workflow.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Create_User": {
"inputs": {
"body": {
"accountEnabled": true,
"displayName": "@triggerBody()['Name']",
"mailNickname": "@triggerBody()['Nickname']",
"userPrincipalName": "@triggerBody()['Email']",
"passwordProfile": {
"password": "@triggerBody()['Password']",
"forceChangePasswordNextSignIn": true
}
},
"host": {
"apiId": "/providers/Microsoft.Web/locations/{region}/managedApis/azureactivedirectory"
},
"method": "post",
"path": "/users"
},
"runAfter": {},
"type": "ApiConnection"
},
"Send_Email": {
"inputs": {
"body": {
"To": "@triggerBody()['Email']",
"Subject": "Welcome to the Company",
"Body": "Dear @triggerBody()['Name'], welcome to the team!"
},
"host": {
"apiId": "/providers/Microsoft.Web/locations/{region}/managedApis/office365"
},
"method": "post",
"path": "/v2/Mail"
},
"runAfter": {
"Create_User": ["Succeeded"]
},
"type": "ApiConnection"
}
},
"triggers": {
"When_a_new_email_arrives": {
"inputs": {
"host": {
"apiId": "/providers/Microsoft.Web/locations/{region}/managedApis/office365"
},
"method": "get",
"path": "/v2/Mail/Inbox"
},
"recurrence": {
"frequency": "Minute",
"interval": 5
},
"type": "ApiConnection"
}
}
}
}