1+ {
2+ "name" : " 24ed5667-14a8-4965-bc0c-d73ed8408aec" ,
3+ "id" : " /providers/Microsoft.Flow/flows/24ed5667-14a8-4965-bc0c-d73ed8408aec" ,
4+ "type" : " Microsoft.Flow/flows" ,
5+ "properties" : {
6+ "apiId" : " /providers/Microsoft.PowerApps/apis/shared_logicflows" ,
7+ "displayName" : " Post 1 - Demonstration flow" ,
8+ "definition" : {
9+ "$schema" : " https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#" ,
10+ "contentVersion" : " 1.0.0.0" ,
11+ "parameters" : {
12+ "$connections" : {
13+ "defaultValue" : {},
14+ "type" : " Object"
15+ },
16+ "$authentication" : {
17+ "defaultValue" : {},
18+ "type" : " SecureObject"
19+ }
20+ },
21+ "triggers" : {
22+ "When_a_Contact_is_created_or_updated" : {
23+ "type" : " OpenApiConnectionWebhook" ,
24+ "inputs" : {
25+ "host" : {
26+ "connectionName" : " shared_commondataserviceforapps" ,
27+ "operationId" : " SubscribeWebhookTrigger" ,
28+ "apiId" : " /providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
29+ },
30+ "parameters" : {
31+ "subscriptionRequest/message" : 4 ,
32+ "subscriptionRequest/entityname" : " contact" ,
33+ "subscriptionRequest/scope" : 4
34+ },
35+ "authentication" : " @parameters('$authentication')"
36+ }
37+ }
38+ },
39+ "actions" : {
40+ "Condition_-_If_the_last_name_is_empty" : {
41+ "actions" : {
42+ "Send_me_an_email_notification" : {
43+ "runAfter" : {},
44+ "type" : " OpenApiConnection" ,
45+ "inputs" : {
46+ "host" : {
47+ "connectionName" : " shared_flowpush" ,
48+ "operationId" : " SendEmailNotification" ,
49+ "apiId" : " /providers/Microsoft.PowerApps/apis/shared_flowpush"
50+ },
51+ "parameters" : {
52+ "NotificationEmailDefinition/notificationSubject" : " WARNING: Newly created contact does not have a last name" ,
53+ "NotificationEmailDefinition/notificationBody" : " Contact with id @{triggerOutputs()?['body/contactid']} does not have a last name."
54+ },
55+ "authentication" : " @parameters('$authentication')"
56+ }
57+ }
58+ },
59+ "runAfter" : {},
60+ "else" : {
61+ "actions" : {
62+ "Create_a_new_row_-_Create_greeting_note" : {
63+ "runAfter" : {},
64+ "type" : " OpenApiConnection" ,
65+ "inputs" : {
66+ "host" : {
67+ "connectionName" : " shared_commondataserviceforapps" ,
68+ "operationId" : " CreateRecord" ,
69+ "apiId" : " /providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
70+ },
71+ "parameters" : {
72+ "entityName" : " annotations" ,
73+ "item/subject" : " Greet our new Contact " ,
74+ "item/notetext" : " With the name of @{triggerOutputs()?['body/fullname']}" ,
75+ "item/isdocument" : false
76+ },
77+ "authentication" : " @parameters('$authentication')"
78+ }
79+ }
80+ }
81+ },
82+ "expression" : {
83+ "equals" : [
84+ " @empty(triggerOutputs()?['body/lastname'])" ,
85+ " @true"
86+ ]
87+ },
88+ "type" : " If"
89+ }
90+ },
91+ "outputs" : {}
92+ },
93+ "connectionReferences" : {
94+ "shared_flowpush" : {
95+ "source" : " Embedded" ,
96+ "id" : " /providers/Microsoft.PowerApps/apis/shared_flowpush" ,
97+ "tier" : " NotSpecified"
98+ },
99+ "shared_commondataserviceforapps" : {
100+ "source" : " Embedded" ,
101+ "id" : " /providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps" ,
102+ "tier" : " NotSpecified"
103+ }
104+ },
105+ "flowFailureAlertSubscribed" : false
106+ }
107+ }
0 commit comments