You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/connectors/connectors-native-reqres.md
+50-18Lines changed: 50 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -400,23 +400,26 @@ When you use the Request trigger to receive inbound requests, you can model the
400
400
401
401
> [!IMPORTANT]
402
402
>
403
-
> If your Response action includes the following headers, Azure Logic Apps automatically
403
+
> * If your Response action includes the following headers, Azure Logic Apps automatically
404
404
> removes these headers from the generated response message without showing any warning
405
405
> or error. Azure Logic Apps won't include these headers, although the service won't
406
406
> stop you from saving workflows that have a Response action with these headers.
407
407
>
408
-
> * `Allow`
409
-
> * `Content-*` headers except for `Content-Disposition`, `Content-Encoding`, and `Content-Type` when you use POST and PUT operations, but are not included for GET operations
410
-
> * `Cookie`
411
-
> * `Expires`
412
-
> * `Last-Modified`
413
-
> * `Set-Cookie`
414
-
> * `Transfer-Encoding`
408
+
> * `Allow`
409
+
> * `Content-*` headers except for `Content-Disposition`, `Content-Encoding`, and `Content-Type` when you use POST and PUT operations, but are not included for GET operations
410
+
> * `Cookie`
411
+
> * `Expires`
412
+
> * `Last-Modified`
413
+
> * `Set-Cookie`
414
+
> * `Transfer-Encoding`
415
415
>
416
+
> * If you have one or more Response actions in a complex workflow with branches, make sure that the workflow
417
+
> processes at least one Response action during runtime. Otherwise, if all Response actions are skipped,
418
+
> the caller receives a **502 Bad Gateway** error, even if the workflow finishes successfully.
416
419
417
420
## [Consumption](#tab/consumption)
418
421
419
-
1. In the workflow designer, under the step where you want to add the Response action, select **New step**.
422
+
1. On the workflow designer, under the step where you want to add the Response action, select **New step**.
420
423
421
424
Or, to add an action between steps, move your pointer over the arrow between those steps. Select the plus sign (**+**) that appears, and then select **Add an action**.
422
425
@@ -453,23 +456,52 @@ When you use the Request trigger to receive inbound requests, you can model the
453
456
454
457
1. To add more properties for the action, such as a JSON schema for the response body, open the **Add new parameter** list, and select the parameters that you want to add.
455
458
456
-
1. When you're done, save your logic app. On the designer toolbar, select **Save**.
459
+
1. When you're done, save your workflow. On the designer toolbar, select **Save**.
457
460
458
461
## [Standard](#tab/standard)
459
462
460
-
---
463
+
1. On the workflow designer, under the step where you want to add the Response action, select plus sign (**+**), and then select **Add new action**.
461
464
462
-
> [!IMPORTANT]
463
-
> If you have one or more Response actions in a complex workflow with branches, make sure
464
-
> that the workflow run processes at least one Response action during runtime.
465
-
> Otherwise, if all Response actions are skipped, the caller receives a **502 Bad Gateway** error, even if the workflow finishes successfully.
465
+
Or, to add an action between steps, move your pointer over the arrow between those steps. Select the plus sign (**+**) that appears, and then select **Add an action**.
466
466
467
-
## Test your workflow
467
+
The following example adds the Response action after the Request trigger from the preceding section:
468
+
469
+

470
+
471
+
1. On the designer, under the **Choose an operation** search box, select **Built-in**. In the search box, enter **response**. From the actions list, select the **Response** action.
472
+
473
+

468
474
469
-
1. To test your logic app, send an HTTP request to the generated URL.
475
+
1. In the Response action information box, add the required values for the response message.
476
+
477
+
In some fields, clicking inside their boxes opens the dynamic content list. You can then select tokens that represent available outputs from previous steps in the workflow. Properties from the schema specified in the earlier example now appear in the dynamic content list.
478
+
479
+
For example, for the **Headers** box, include **Content-Type** as the key name, and set the key value to **application/json** as mentioned earlier in this article. For the **Body** box, you can select the trigger body output from the dynamic content list.
480
+
481
+

482
+
483
+
To view the headers in JSON format, select **Switch to text view**.
470
484
471
-
For example, you can use a tool such as [Postman](https://www.getpostman.com/) to send the HTTP request. For more information about the trigger's underlying JSON definition and how to call this trigger, see these topics, [Request trigger type](../logic-apps/logic-apps-workflow-actions-triggers.md#request-trigger) and [Call, trigger, or nest workflows with HTTP endpoints in Azure Logic Apps](../logic-apps/logic-apps-http-endpoint.md).
485
+

486
+
487
+
The following table has more information about the properties that you can set in the Response action.
488
+
489
+
| Property name | JSON property name | Required | Description |
| **Status Code** | `statusCode` | Yes | The status code to return in the response |
492
+
| **Headers** | `headers` | No | A JSON object that describes one or more headers to include in the response |
493
+
| **Body** | `body` | No | The response body |
494
+
|||||
495
+
496
+
1. To add more properties for the action, such as a JSON schema for the response body, open the **Add new parameter** list, and select the parameters that you want to add.
497
+
498
+
1. When you're done, save your workflow. On the designer toolbar, select **Save**.
499
+
500
+
---
501
+
502
+
## Test your workflow
472
503
504
+
To test your workflow, send an HTTP request to the generated URL. For example, you can use a tool such as [Postman](https://www.getpostman.com/) to send the HTTP request. For more information about the trigger's underlying JSON definition and how to call this trigger, see these topics, [Request trigger type](../logic-apps/logic-apps-workflow-actions-triggers.md#request-trigger) and [Call, trigger, or nest workflows with HTTP endpoints in Azure Logic Apps](../logic-apps/logic-apps-http-endpoint.md).
0 commit comments