Skip to content

Commit 13bc2ce

Browse files
committed
Partial updates
1 parent 840660a commit 13bc2ce

File tree

6 files changed

+50
-18
lines changed

6 files changed

+50
-18
lines changed

articles/connectors/connectors-native-reqres.md

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -400,23 +400,26 @@ When you use the Request trigger to receive inbound requests, you can model the
400400

401401
> [!IMPORTANT]
402402
>
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
404404
> removes these headers from the generated response message without showing any warning
405405
> or error. Azure Logic Apps won't include these headers, although the service won't
406406
> stop you from saving workflows that have a Response action with these headers.
407407
>
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`
415415
>
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.
416419

417420
## [Consumption](#tab/consumption)
418421

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**.
420423

421424
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**.
422425

@@ -453,23 +456,52 @@ When you use the Request trigger to receive inbound requests, you can model the
453456

454457
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.
455458

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**.
457460

458461
## [Standard](#tab/standard)
459462

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**.
461464

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**.
466466

467-
## Test your workflow
467+
The following example adds the Response action after the Request trigger from the preceding section:
468+
469+
![Screenshot showing Azure portal, Standard workflow, and "Add an action" selected.](./media/connectors-native-reqres/add-response-standard.png)
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+
![Screenshot showing Azure portal, Standard workflow, "Choose an operation" search box with "response" entered, and and Response action selected](./media/connectors-native-reqres/select-response-action-standard.png)
468474

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+
![Screenshot showing Azure portal, Standard workflow, and Response action information.](./media/connectors-native-reqres/response-details-standard.png)
482+
483+
To view the headers in JSON format, select **Switch to text view**.
470484

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+
![Screenshot showing Azure portal, Standard workflow, and Response action headers in "Switch to text" view.](./media/connectors-native-reqres/switch-to-text-view-standard.png)
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 |
490+
|---------------|--------------------|----------|-------------|
491+
| **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
472503

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).
473505

474506
## Security and authentication
475507

15.7 KB
Loading
41.3 KB
Loading
25.6 KB
Loading
-5.71 KB
Loading
25.7 KB
Loading

0 commit comments

Comments
 (0)