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
To automate tasks for your Office 365 Outlook account in workflows using Azure Logic Apps, you can add operations from the [Office 365 Outlook connector](/connectors/office365connector/) to your workflow. For example, your workflow can perform the following tasks:
15
+
This guide shows how to add an Office 365 Outlook trigger or action to your workflow in Azure Logic Apps. You can automate tasks for your Office 365 Outlook account by adding operations from the [Office 365 Outlook connector](/connectors/office365connector/).
16
+
17
+
For example, your workflow can perform the following tasks:
16
18
17
19
* Get, send, and reply to email.
18
20
* Schedule meetings on your calendar.
19
21
* Add and edit contacts.
20
22
21
-
This guide shows how to add an Office 365 Outlook trigger or action to your workflow in Azure Logic Apps.
22
-
23
23
> [!NOTE]
24
24
>
25
-
> The Office 365 Outlook connector works only with a [work or school account](https://support.microsoft.com/office/what-account-to-use-with-office-and-you-need-one-914e6610-2763-47ac-ab36-602a81068235#bkmk_msavsworkschool), for example, @fabrikam.onmicrosoft.com.
25
+
> The Office 365 Outlook connector works only with a [work or school account](https://support.microsoft.com/office/what-account-to-use-with-office-and-you-need-one-914e6610-2763-47ac-ab36-602a81068235#bkmk_msavsworkschool), for example, @fabrikam.onmicrosoft.com.
26
26
> If you have an @outlook.com or @hotmail.com account, use the [Outlook.com connector](../connectors/connectors-create-api-outlook.md).
27
27
> To connect to Outlook with a different user account, such as a service account, see [Connect using other accounts](#connect-using-other-accounts).
28
28
29
29
## Connector technical reference
30
30
31
-
For information about this connector's operations and any limits, based on the connector's Swagger file, see the [connector's reference page](/connectors/office365/).
31
+
For information about this connector's operations and any limits, see the [connector's reference page](/connectors/office365/).
32
32
33
33
## Prerequisites
34
34
@@ -42,17 +42,28 @@ For information about this connector's operations and any limits, based on the c
42
42
> Microsoft Entra authentication works only with an account for
43
43
> Microsoft Office 365 operated by 21Vianet (.cn), not .com accounts.
44
44
45
-
* The logic app workflow from where you want to access your Outlook account. To add an Office 365 Outlook trigger, you have to start with a blank workflow. To add an Office 365 Outlook action, your workflow can start with any trigger.
45
+
* The logic app resource with the workflow from where you want to access your Outlook account.
46
+
47
+
To start your workflow with an **Office 365 Outlook** trigger, you need to have a blank workflow.
48
+
49
+
To use an **Office 365 Outlook** action, your workflow can start with any trigger that best fits your scenario.
50
+
51
+
If you don't have a logic app resource and workflow, see the following articles:
52
+
53
+
*[Create an example Consumption logic app workflow](../logic-apps/quickstart-create-example-consumption-workflow.md)
54
+
*[Create an example Standard logic app workflow](../logic-apps/create-single-tenant-workflows-azure-portal.md)
46
55
47
56
## Add an Office 365 Outlook trigger
48
57
49
58
Based on whether you have a Consumption or Standard logic app workflow, follow the corresponding steps:
50
59
51
60
### [Consumption](#tab/consumption)
52
61
53
-
1. In the [Azure portal](https://portal.azure.com), open your blank logic app workflow in the designer.
62
+
1. In the [Azure portal](https://portal.azure.com), open your Consumption logic app resource.
54
63
55
-
1.[Follow these general steps to add the Office 365 Outlook trigger](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=consumption#add-trigger) that you want to your workflow.
64
+
1. On the sidebar menu, under **Development Tools**, select the designer to open your blank workflow.
65
+
66
+
1. Add the **Office 365 Outlook** trigger that suits your scenario by following the [general steps to add a trigger to your workflow](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=consumption#add-trigger).
56
67
57
68
This example continues with the trigger named **When an upcoming event is starting soon**. This *polling* trigger regularly checks for any updated calendar event in your email account, based on the specified schedule.
58
69
@@ -71,17 +82,22 @@ Based on whether you have a Consumption or Standard logic app workflow, follow t
71
82
|**Interval**| Yes |**15**| The number of intervals |
72
83
|**Frequency**| Yes |**Minute**| The unit of time |
73
84
74
-
To add other available parameters, such as **Time zone**, open the **Add new parameter** list, and select the parameters that you want.
85
+
You can add any other available parameters, such as **Time zone**, from the **Advanced parameters** list.
75
86
76
-

87
+
:::image type="content" source="media/connectors-create-api-office365-outlook/calendar-settings-consumption.png" alt-text="Screenshot showing the Consumption workflowtrigger parameters." lightbox="media/connectors-create-api-office365-outlook/calendar-settings-consumption.png":::
77
88
78
89
1. Save your workflow. On the designer toolbar, select **Save**.
79
90
80
91
### [Standard](#tab/standard)
81
92
82
-
1. In the [Azure portal](https://portal.azure.com), open your blank logic app workflow in the designer.
93
+
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
94
+
95
+
1. On the resource sidebar menu, under **Workflows**, select **Workflows**, and then select your blank workflow.
96
+
97
+
1. On the workflow sidebar menu, under **Tools**, select the designer to open the workflow.
83
98
84
-
1.[Follow these general steps to add the Office 365 Outlook trigger](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=standard#add-trigger) that you want to your workflow.
99
+
100
+
1. Add the **Office 365 Outlook** trigger that best suits your scenario by following the [general steps to add a trigger](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=standard#add-trigger).
85
101
86
102
This example continues with the trigger named **When an upcoming event is starting soon**. This *polling* trigger regularly checks for any updated calendar event in your email account, based on the specified schedule.
87
103
@@ -100,9 +116,9 @@ Based on whether you have a Consumption or Standard logic app workflow, follow t
100
116
|**Interval**| Yes |**15**| The number of intervals |
101
117
|**Frequency**| Yes |**Minute**| The unit of time |
102
118
103
-
To add other available parameters, such as **Time zone**, open the **Add new parameter** list, and select the parameters that you want.
119
+
You can add any other available parameters, such as **Time zone**, from the **Advanced parameters** list.
104
120
105
-

121
+
:::image type="content" source="media/connectors-create-api-office365-outlook/calendar-settings-standard.png" alt-text="Screenshot showing the Standard workflowtrigger parameters." lightbox="media/connectors-create-api-office365-outlook/calendar-settings-standard.png":::
106
122
107
123
1. Save your workflow. On the designer toolbar, select **Save**.
108
124
@@ -120,9 +136,11 @@ Based on whether you have a Consumption or Standard logic app workflow, follow t
120
136
121
137
This example continues with the Office 365 Outlook trigger named **When a new email arrives**.
122
138
123
-
1.[Follow these general steps to add the Office 365 Outlook action](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=consumption#add-action) that you want to your workflow.
139
+
1. Add the **Office 365 Outlook** action that best suits your scenario by following the [general steps to add an action to your workflow](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=consumption#add-action).
140
+
141
+
This example continues with the **Office 365 Outlook** action named **Create contact**.
124
142
125
-
This example continues with the Office 365 Outlook action named **Create contact**. This operation creates a new contact in Office 365 Outlook. You can use the output from a previous operation in the workflow to create the contact.
143
+
This operation creates a new contact in Office 365 Outlook. You can use the output from a previous operation in the workflow to create the contact.
126
144
127
145
1. If prompted, sign in to your Office 365 Outlook account, which creates a connection. To connect with a different user account, such as a service account, see [Connect using other accounts](#connect-using-other-accounts).
128
146
@@ -141,9 +159,9 @@ Based on whether you have a Consumption or Standard logic app workflow, follow t
141
159
142
160
This example selects the **Contacts** folder where the action creates the new contact and uses trigger outputs for the remaining parameter values:
143
161
144
-

162
+
:::image type="content" source="media/connectors-create-api-office365-outlook/create-contact-consumption.png" alt-text="Screenshot showing the Consumption workflowaction parameters." lightbox="media/connectors-create-api-office365-outlook/create-contact-consumption.png":::
145
163
146
-
To add other available parameters, open the **Add new parameter** list, and select the parameters that you want.
164
+
You can add any other available parameters from the **Advanced parameters** list.
147
165
148
166
1. Save your workflow. On the designer toolbar, select **Save**.
149
167
@@ -153,9 +171,9 @@ Based on whether you have a Consumption or Standard logic app workflow, follow t
153
171
154
172
This example continues with the Office 365 Outlook trigger named **When a new email arrives**.
155
173
156
-
1.[Follow these general steps to add the Office 365 Outlook action](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=standard#add-action) that you want to your workflow.
174
+
1.Add an **Office 365 Outlook** action to your workflow by following the [general steps to add an action](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=standard#add-action).
157
175
158
-
This example continues with the Office 365 Outlook action named **Create contact**. This operation creates a new contact in Office 365 Outlook. You can use the output from a previous operation in the workflow to create the contact.
176
+
This example continues with the **Office 365 Outlook** action named **Create contact**. This operation creates a new contact in Office 365 Outlook. You can use the output from a previous operation in the workflow to create the contact.
159
177
160
178
1. If prompted, sign in to your Office 365 Outlook account, which creates a connection. To connect with a different user account, such as a service account, see [Connect using other accounts](#connect-using-other-accounts).
161
179
@@ -174,9 +192,9 @@ Based on whether you have a Consumption or Standard logic app workflow, follow t
174
192
175
193
This example selects the **Contacts** folder where the action creates the new contact and uses trigger outputs for the remaining parameter values:
176
194
177
-

195
+
:::image type="content" source="media/connectors-create-api-office365-outlook/create-contact-standard.png" alt-text="Screenshot showing the Standard workflowaction parameters." lightbox="media/connectors-create-api-office365-outlook/create-contact-standard.png":::
178
196
179
-
To add other available parameters, open the **Add new parameter** list, and select the parameters that you want.
197
+
You can add any other available parameters from the **Advanced parameters** list.
180
198
181
199
1. Save your workflow. On the designer toolbar, select **Save**.
182
200
@@ -200,17 +218,17 @@ If you try connecting to Outlook by using a different account than the one curre
200
218
201
219
1. After you set up this role, sign in to the Azure portal with the account that now has Contributor permissions. You can now use this account to create the connection to Outlook.
202
220
203
-
* Set up the other account so that your work or school account has "send as" permissions.
221
+
* Set up the other account so that your work or school account has **send as** permissions.
204
222
205
223
If you have admin permissions, on the service account's mailbox, set up your work or school account with either **Send as** or **Send on behalf of** permissions. For more information, see [Give mailbox permissions to another user - Admin Help](/microsoft-365/admin/add-users/give-mailbox-permissions-to-another-user). You can then create the connection by using your work or school account. Now, in triggers or actions where you can specify the sender, you can use the service account's email address.
206
224
207
225
For example, the **Send an email** action has an optional parameter, **From (Send as)**, which you can add to the action and use your service account's email address as the sender. To add this parameter, follow these steps:
208
226
209
-
1. In the **Send an email** action, open the **Add a parameter** list, and select the **From (Send as)** parameter.
227
+
1. In the **Send an email** action, from the **Advanced parameters** list, select the **From (Send as)** parameter.
210
228
211
-
1.After the parameter appears on the action, enter the service account's email address.
229
+
1.Enter the service account's email address.
212
230
213
-
## Next steps
231
+
## Related content
214
232
215
233
*[Managed connectors for Azure Logic Apps](managed.md)
216
234
*[Built-in connectors for Azure Logic Apps](built-in.md)
0 commit comments