@@ -47,17 +47,58 @@ Under the triggers list, select this trigger:
47
47
48
48
![ Select trigger] ( ./media/logic-apps-scenario-function-sb-trigger/when-http-request-received-trigger.png )
49
49
50
- You can optionally specify a JSON schema to use
51
- with the queue message by using a tool like
52
- [ jsonschema.net ] ( http://jsonschema.net ) .
53
- JSON schemas help the Logic App Designer understand
54
- the structure of the data and makes properties easier
55
- for you to select throughout the workflow.
56
- To specify a schema, paste the schema in
57
- the ** Request Body JSON Schema** box, for example:
50
+ 1 . For the ** Request ** trigger, you can optionally
51
+ enter a JSON schema for use with the queue message.
52
+ JSON schemas help the Logic App Designer understand
53
+ the structure of the input data and makes outputs
54
+ easier for you to select throughout the workflow.
55
+
56
+ To specify a schema, enter the schema in the
57
+ ** Request Body JSON Schema** box, for example:
58
58
59
59
![ Specify JSON schema] ( ./media/logic-apps-scenario-function-sb-trigger/when-http-request-received-trigger-schema.png )
60
60
61
+ If you don't have a schema, but you have a sample payload in JSON format,
62
+ you can generate a schema from that payload.
63
+
64
+ 1 . In the Request trigger, choose
65
+ ** Use sample payload to generate schema** .
66
+
67
+ 1 . Under ** Enter or paste a sample JSON payload** ,
68
+ enter your sample payload, and then choose ** Done** .
69
+
70
+ ![ Enter sample payload] ( ./media/logic-apps-scenario-function-sb-trigger/enter-sample-payload.png )
71
+
72
+ This sample payload generates this schema that appears in the trigger:
73
+
74
+ ``` json
75
+ {
76
+ "type" : " object" ,
77
+ "properties" : {
78
+ "address" : {
79
+ "type" : " object" ,
80
+ "properties" : {
81
+ "number" : {
82
+ "type" : " integer"
83
+ },
84
+ "street" : {
85
+ "type" : " string"
86
+ },
87
+ "city" : {
88
+ "type" : " string"
89
+ },
90
+ "postalCode" : {
91
+ "type" : " integer"
92
+ },
93
+ "country" : {
94
+ "type" : " string"
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ ```
101
+
61
102
1 . Add any other actions you want to happen after receiving the queue message.
62
103
63
104
For example, you can send an email with the Office 365 Outlook connector.
0 commit comments