Skip to content

Commit eb0a7a7

Browse files
committed
Update art
1 parent 74bd0db commit eb0a7a7

File tree

5 files changed

+49
-8
lines changed

5 files changed

+49
-8
lines changed

articles/logic-apps/logic-apps-scenario-function-sb-trigger.md

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,58 @@ Under the triggers list, select this trigger:
4747

4848
![Select trigger](./media/logic-apps-scenario-function-sb-trigger/when-http-request-received-trigger.png)
4949

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:
5858

5959
![Specify JSON schema](./media/logic-apps-scenario-function-sb-trigger/when-http-request-received-trigger-schema.png)
6060

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+
61102
1. Add any other actions you want to happen after receiving the queue message.
62103

63104
For example, you can send an email with the Office 365 Outlook connector.
82 Bytes
Loading
17.7 KB
Loading
-145 Bytes
Loading
89 Bytes
Loading

0 commit comments

Comments
 (0)