Skip to content

Commit 3c8da1d

Browse files
author
ecfan
committed
Compose updates
1 parent 142d347 commit 3c8da1d

16 files changed

+62
-43
lines changed

articles/logic-apps/logic-apps-perform-data-operations.md

Lines changed: 62 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -73,71 +73,97 @@ and creates the following output:
7373

7474
`{"age":35,"fullName":"Owens,Sophia"}`
7575

76-
To try the **Compose** action, follow these steps by using the workflow designer. Or, if you prefer working in the code view editor, you can copy the example **Compose** and **Initialize variable** action definitions from this guide into your own logic app's underlying workflow definition: [Data operation code examples - Compose](../logic-apps/logic-apps-data-operations-code-samples.md#compose-action-example). For more information about the **Compose** action in the underlying JSON workflow definition, see the [Compose action](logic-apps-workflow-actions-triggers.md#compose-action).
76+
To try the **Compose** action, follow these steps by using the workflow designer. Or, if you prefer working in the code view editor, you can copy the example **Compose** and **Initialize variable** action definitions from this guide into your own logic app's underlying workflow definition: [Data operation code examples - Compose](logic-apps-data-operations-code-samples.md#compose-action-example). For more information about the **Compose** action in the underlying JSON workflow definition, see the [Compose action](logic-apps-workflow-actions-triggers.md#compose-action).
7777

7878
### [Consumption](#tab/consumption)
7979

8080
1. In the [Azure portal](https://portal.azure.com), Visual Studio, or Visual Studio Code, open your logic app workflow in the designer.
8181

82-
This example uses the Azure portal and a sample workflow with the **Recurrence** trigger followed by several **Initialize variable** actions. These actions are set up to create two string variables and an integer variable.
82+
This example uses the Azure portal and a sample workflow with the **Recurrence** trigger followed by several **Variables** actions named **Initialize variable**. These actions are set up to create two string variables and an integer variable.
8383

84-
![Screenshot showing the Azure portal and the designer with a sample Consumption workflow for the Compose action.](./media/logic-apps-perform-data-operations/sample-start-compose-action-consumption.png)
84+
| Operation | Properties and values |
85+
|-----------|-----------------------|
86+
| **Initialize variable** | - **Name**: firstNameVar <br>- **Type**: String <br>- **Value**: Sophia |
87+
| **Initialize variable** | - **Name**: lastNameVar <br>- **Type**: String <br>- **Value**: Owens |
88+
| **Initialize variable** | - **Name**: ageVar <br>- **Type**: Integer <br>- **Value**: 35 |
8589

86-
1. In your workflow where you want to create the output, follow one of these steps:
90+
:::image type="content" source="media/logic-apps-perform-data-operations/sample-start-compose-action-consumption.png" alt-text="Screenshot shows Azure portal and designer for example Consumption workflow with Compose action." lightbox="media/logic-apps-perform-data-operations/sample-start-compose-action-consumption.png":::
8791

88-
* To add an action under the last step, select **New step**.
92+
1. [Follow these general steps to add the **Data Operations** action named **Compose**](create-workflow-with-trigger-or-action.md?tabs=consumption#add-action).
8993

90-
* To add an action between steps, move your mouse over the connecting arrow so the plus sign (**+**) appears. Select the plus sign, and then select **Add an action**.
94+
1. On the designer, select the **Compose** action, if not already selected. In the **Inputs** box, enter the inputs to use for creating the output.
95+
96+
For this example, follow these steps:
9197

92-
1. Under the **Choose an operation** search box, select **Built-in**. In the search box, enter **compose**.
98+
1. In the **Inputs** box, enter the following sample JSON object, including the spacing as shown:
9399

94-
1. From the actions list, select the action named **Compose**.
100+
```json
101+
{
102+
"age": ,
103+
"fullName": " , "
104+
}
105+
```
95106

96-
![Screenshot showing the designer for a Consumption workflow, the "Choose an operation" search box with "compose" entered, and the "Compose" action selected.](./media/logic-apps-perform-data-operations/select-compose-action-consumption.png)
107+
1. In the JSON object, put your cursor in the corresponding locations, select the dynamic content list (lightning icon), and then select the corresponding variable from the list:
97108

98-
1. In the **Inputs** box, enter the inputs to use for creating the output.
109+
| JSON property | Variable |
110+
|---------------|----------|
111+
| **`age`** | **ageVar** |
112+
| **`fullName`** | "**lastNameVar**, **firstNameVar**" |
99113

100-
For this example, select inside the **Inputs** box, which opens the dynamic content list. From that list, select the previously created variables:
114+
The following example shows both added and not yet added variables:
101115

102-
![Screenshot showing the designer for a Consumption workflow, the "Compose" action, and the selected inputs to use.](./media/logic-apps-perform-data-operations/configure-compose-action-consumption.png)
116+
:::image type="content" source="media/logic-apps-perform-data-operations/configure-compose-action-consumption.png" alt-text="Screenshot shows Consumption workflow, Compose action, dynamic content list, and selected inputs to use." lightbox="media/logic-apps-perform-data-operations/configure-compose-action-consumption.png":::
103117

104-
The following screenshot shows the finished example **Compose** action:
118+
The following example shows the finished sample **Compose** action:
105119

106-
![Screenshot showing the designer for a Consumption workflow and the finished example for the "Compose" action.](./media/logic-apps-perform-data-operations/finished-compose-action-consumption.png)
120+
:::image type="content" source="media/logic-apps-perform-data-operations/finished-compose-action-consumption.png" alt-text="Screenshot shows Consumption workflow with complete Compose action." lightbox="media/logic-apps-perform-data-operations/finished-compose-action-consumption.png":::
107121

108122
1. Save your workflow. On the designer toolbar, select **Save**.
109123

110124
### [Standard](#tab/standard)
111125

112126
1. In the [Azure portal](https://portal.azure.com) or Visual Studio Code, open your logic app workflow in the designer.
113127

114-
This example uses the Azure portal and a sample workflow with the **Recurrence** trigger followed by several **Initialize variable** actions. These actions are set up to create two string variables and an integer variable.
128+
This example uses the Azure portal and a sample workflow with the **Recurrence** trigger followed by several **Variables** actions named **Initialize variable**. These actions are set up to create two string variables and an integer variable.
115129

116-
![Screenshot showing the Azure portal and the designer for a sample Standard workflow for the Compose action.](./media/logic-apps-perform-data-operations/sample-start-compose-action-standard.png)
130+
| Operation | Properties and values |
131+
|-----------|-----------------------|
132+
| **Initialize variable** | - **Name**: firstNameVar <br>- **Type**: String <br>- **Value**: Sophia |
133+
| **Initialize variable** | - **Name**: lastNameVar <br>- **Type**: String <br>- **Value**: Owens |
134+
| **Initialize variable** | - **Name**: ageVar <br>- **Type**: Integer <br>- **Value**: 35 |
117135

118-
1. In your workflow where you want to create the output, follow one of these steps:
136+
:::image type="content" source="media/logic-apps-perform-data-operations/sample-start-compose-action-standard.png" alt-text="Screenshot shows Azure portal and designer for example Standard workflow with Compose action." lightbox="media/logic-apps-perform-data-operations/sample-start-compose-action-standard.png":::
119137

120-
* To add an action under the last step, select the plus sign (**+**), and then select **Add an action**.
138+
1. [Follow these general steps to add the **Data Operations** action named **Compose**](create-workflow-with-trigger-or-action.md?tabs=standard#add-action).
121139

122-
* To add an action between steps, select the plus sign (**+**) between those steps, and then select **Add an action**.
140+
1. On the designer, select the **Compose** action, if not already selected. In the **Inputs** box, enter the inputs to use for creating the output.
123141

124-
1. After the connector gallery opens, [follow these general steps to find the **Data Operations** action named **Compose**](create-workflow-with-trigger-or-action.md?tabs=standard#add-an-action-to-run-a-task).
142+
For this example, follow these steps:
125143

126-
> [!NOTE]
127-
>
128-
> If the connector results box shows the message that **We couldn't find any results for compose**,
129-
> you get this result because the connector name is actually **Data Operations**, not **Compose**,
130-
> which is the action name.
144+
1. In the **Inputs** box, enter the following sample JSON object, including the spacing as shown:
131145

132-
1. After the action information box opens, in the **Inputs** box, enter the inputs to use for creating the output.
146+
```json
147+
{
148+
"age": ,
149+
"fullName": " , "
150+
}
151+
```
133152

134-
For this example, select inside the **Inputs** box, and then select the lightning icon, which opens the dynamic content list. From that list, select the previously created variables:
153+
1. In the JSON object, put your cursor in the corresponding locations, select the dynamic content list (lightning icon), and then select the corresponding variable from the list:
135154

136-
![Screenshot showing the designer for a Standard workflow, the "Compose" action, and the selected inputs to use.](./media/logic-apps-perform-data-operations/configure-compose-action-standard.png)
155+
| JSON property | Variable |
156+
|---------------|----------|
157+
| **`age`** | **ageVar** |
158+
| **`fullName`** | "**lastNameVar**, **firstNameVar**" |
137159

138-
The following screenshot shows the finished example **Compose** action:
160+
The following example shows both added and not yet added variables:
139161

140-
![Screenshot showing the designer for a Standard workflow and the finished example for the "Compose" action.](./media/logic-apps-perform-data-operations/finished-compose-action-standard.png)
162+
:::image type="content" source="media/logic-apps-perform-data-operations/configure-compose-action-standard.png" alt-text="Screenshot shows Standard workflow, Compose action, dynamic content list, and selected inputs to use." lightbox="media/logic-apps-perform-data-operations/configure-compose-action-standard.png":::
163+
164+
The following example shows the finished sample **Compose** action:
165+
166+
:::image type="content" source="media/logic-apps-perform-data-operations/finished-compose-action-standard.png" alt-text="Screenshot shows Standard workflow with complete Compose action." lightbox="media/logic-apps-perform-data-operations/finished-compose-action-standard.png":::
141167

142168
1. Save your workflow. On the designer toolbar, select **Save**.
143169

@@ -153,40 +179,33 @@ To confirm whether the **Compose** action creates the expected results, send you
153179

154180
This example continues by using the Office 365 Outlook action named **Send an email**.
155181

156-
1. In this action, for each box where you want the results to appear, select inside each box, which opens the dynamic content list. From that list, under the **Compose** action, select **Outputs**.
182+
1. In this action, for each box where you want the results to appear, select inside each box, and then select the dynamic content list. From that list, under the **Compose** action, select **Outputs**.
157183

158184
For this example, the result appears in the email's body, so add the **Outputs** field to the **Body** box.
159185

160-
![Screenshot showing the Azure portal, designer for an example Consumption workflow, and the "Send an email" action with the output from the preceding "Compose" action.](./media/logic-apps-perform-data-operations/send-email-compose-action-consumption.png)
186+
:::image type="content" source="media/logic-apps-perform-data-operations/send-email-compose-action-consumption.png" alt-text="Screenshot shows Consumption workflow designer, the action named Send an email, and output from the preceding Compose action." lightbox="media/logic-apps-perform-data-operations/send-email-compose-action-consumption.png":::
161187

162-
1. Save your workflow, and then manually run your workflow. On the designer toolbar, select **Run Trigger** > **Run**.
188+
1. Save your workflow, and then manually run your workflow. On the designer toolbar, select **Run** > **Run**.
163189

164190
#### [Standard](#tab/standard)
165191

166192
1. In your workflow, add an action that can send you the results from the **Compose** action.
167193

168194
This example continues by using the Office 365 Outlook action named **Send an email**.
169195

170-
1. In this action, for each box where you want the results to appear, select inside each box, and then select the lightning icon, which opens the dynamic content list. From that list, under the **Compose** action, select **Outputs**.
171-
172-
> [!NOTE]
173-
>
174-
> If the dynamic content list shows the message that **We can't find any outputs to match this input format**,
175-
> select **See more** next to the **Compose** label in the list.
176-
>
177-
> ![Screenshot showing a Standard workflow and the dynamic content list with "See more" selected for the "Compose" action.](./media/logic-apps-perform-data-operations/send-email-compose-action-see-more.png)
196+
1. In this action, for each box where you want the results to appear, select inside each box, and then select the dynamic content list. From that list, under the **Compose** action, select **Outputs**.
178197

179198
For this example, the result appears in the email's body, so add the **Outputs** field to the **Body** box.
180199

181-
![Screenshot showing the Azure portal, designer for an example Standard workflow, and the "Send an email" action with the output from the preceding "Compose" action.](./media/logic-apps-perform-data-operations/send-email-compose-action-standard.png)
200+
:::image type="content" source="media/logic-apps-perform-data-operations/send-email-compose-action-standard.png" alt-text="Screenshot shows Consumption workflow designer, the action named Send an email, and output from the preceding Compose action." lightbox="media/logic-apps-perform-data-operations/send-email-compose-action-standard.png":::
182201

183202
1. Save your workflow, and then manually run your workflow. On the workflow navigation menu, select **Overview** > **Run Trigger** > **Run**.
184203

185204
---
186205

187206
If you used the Office 365 Outlook action, you get a result similar to the following screenshot:
188207

189-
![Screenshot showing an email with the "Compose" action results.](./media/logic-apps-perform-data-operations/compose-email-results.png)
208+
:::image type="content" source="media/logic-apps-perform-data-operations/compose-email-results.png" alt-text="Screenshot shows email with results from the Compose action.":::
190209

191210
<a name="create-csv-table-action"></a>
192211

515 Bytes
Loading
23.1 KB
Loading
-4.52 KB
Loading
681 Bytes
Loading
683 Bytes
Loading
689 Bytes
Loading
1.66 KB
Loading
-28.2 KB
Loading
685 Bytes
Loading

0 commit comments

Comments
 (0)