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
If you connect to Office 365 Outlook, you can show, send, delete, and reply to email messages, in addition to other tasks.
21
22
22
23
You can add controls to perform these functions in your app. For example, you can add **Text input** controls to ask for the recipient, the subject, and the body of the email, and add a **Button** control to send the email.
23
24
24
-
This topic shows you how to add Office 365 Outlook as a connection, add Office 365 Outlook as a data source to your app, and use this data in different controls.
25
+
This article shows you how to add Office 365 Outlook as a connection, add Office 365 Outlook as a data source to your app, and use this data in different controls.
25
26
26
27
> [!IMPORTANT]
27
28
> As of this writing, the calendar operation doesn't support recurring events.
After changing the settings, change **Layout** to **Title, Subtitle, Body**.
46
51
47
52
The gallery control is automatically populated with some of your emails.
48
53
49
-
3. In the gallery, set the **Text** property of the first label to `ThisItem.From`. Set the second label to `ThisItem.Subject`. Set the third label to `ThisItem.BodyPreview`. You can also resize the labels.
54
+
1. In the gallery, set the **Text** property of the first label to `ThisItem.From`. Set the second label to `ThisItem.Subject`. Set the third label to `ThisItem.BodyPreview`. You can also resize the labels.
50
55
51
56
The gallery control is automatically populated with the new properties.
52
-
4. This function has several optional parameters available. Set the gallery's **Items** property to one of the following formulas:
57
+
58
+
1. This function has several optional parameters available. Set the gallery's **Items** property to one of the following formulas:
1. On the **Insert** menu, select **Text**, and then select **Text input**.
62
-
2. Repeat the previous step two more times so that you have three boxes, and then arrange them in a column:
69
+
70
+
1. Repeat the previous step 2 more times so that you have three boxes, and then arrange them in a column:
63
71
64
72

65
-
3. Rename the controls to:
73
+
74
+
1. Rename the controls to:
66
75
67
76
***inputTo**
68
77
***inputSubject**
69
78
***inputBody**
70
-
4. On the **Insert** menu, select **Controls**, and then select **Button**. Set its **[OnSelect](../controls/properties-core.md)** property to the following formula:
79
+
80
+
1. On the **Insert** menu, select **Controls**, and then select **Button**. Set its **[OnSelect](../controls/properties-core.md)** property to the following formula:
5. Move the button so that it appears under all the other controls, and set its **[Text](../controls/properties-core.md)** property to **"Send email"**.
74
-
6. Press F5, or select the Preview button (). Type in a valid email address in **inputTo**, and type whatever you want in the other two **Text input** controls.
75
-
7. Select **Send email** to send the message. Press Esc to return to the default workspace.
1. Move the button so that it appears under all the other controls, and set its **[Text](../controls/properties-core.md)** property to **"Send email"**.
85
+
86
+
1. Press F5, or select the Preview button (). Type in a valid email address in **inputTo**, and type whatever you want in the other two **Text input** controls.
87
+
88
+
1. Select **Send email** to send the message. Press Esc to return to the default workspace.
76
89
77
90
## Send a message with an attachment
91
+
78
92
You can, for example, create an app in which the user takes pictures by using the device's camera and then sends them as attachments. Users can also attach many other kinds of files to an email app.
79
93
80
94
To add an attachment to a message, follow the steps in the previous section, but add a parameter to specify an attachment (when you set the **OnSelect** property of the button). This parameter is structured as a table in which you specify up to three properties for each attachment:
@@ -88,43 +102,53 @@ To add an attachment to a message, follow the steps in the previous section, but
88
102
89
103
In this example, a photo will be sent as **file1.jpg**:
The gallery control is automatically populated with some of your emails.
104
-
3. In the gallery, set the **Text** property of the first label to `ThisItem.Id`. Set the second label to `ThisItem.Subject`. Set the third label to `ThisItem.Body`.
105
-
4. Select the first label in the gallery, and rename it to **EmailID**:
120
+
121
+
1. In the gallery, set the **Text** property of the first label to `ThisItem.Id`. Set the second label to `ThisItem.Subject`. Set the third label to `ThisItem.Body`.
122
+
123
+
1. Select the first label in the gallery, and rename it to **EmailID**:
106
124
107
125

126
+
108
127
5. Select the third label in the gallery, and add a **Button** (**Insert** menu). Set the button's **OnSelect** property to the following formula:
109
128
110
-
`Office365.DeleteEmail(EmailID.Text)`
111
-
6. Press F5, or select the Preview button (). Select one of the emails in your gallery, and click the button.
129
+
`Office365Outlook.DeleteEmail(EmailID.Text)`
130
+
131
+
6. Press F5, or select the Preview button (). Select one of the emails in your gallery, and select the button.
112
132
113
133
> [!NOTE]
114
134
> This deletes the selected email from your inbox. So, choose wisely.
135
+
115
136
7. Press Esc to return to the default workspace.
116
137
117
138
## Mark a message as read
139
+
118
140
This section uses the same controls as [Delete a message](connection-office365-outlook.md#delete-a-message).
119
141
120
142
1. Set the button's **OnSelect** property to the following formula:
121
143
122
-
`Office365.MarkAsRead(EmailID.Text)`
123
-
2. Press F5, or select the Preview button (). Select one of the unread emails, and then click the button.
124
-
3. Press Esc to return to the default workspace.
144
+
`Office365Outlook.MarkAsRead(EmailID.Text)`
145
+
146
+
1. Press F5, or select the Preview button (). Select one of the unread emails, and then select the button.
147
+
148
+
1. Press Esc to return to the default workspace.
125
149
126
-
## Helpful links
127
-
* For a list of all functions and their parameters, see the [Office 365 Outlook reference](https://docs.microsoft.com/connectors/office365connector/).
128
-
* See all the [available connections](../connections-list.md).
129
-
* Learn how to [manage your connections](../add-manage-connections.md).
150
+
### See also
130
151
152
+
- For a list of all functions and their parameters, see the [Office 365 Outlook reference](https://docs.microsoft.com/connectors/office365connector/).
153
+
- See all the [available connections](../connections-list.md).
154
+
- Learn how to [manage your connections](../add-manage-connections.md).
Office 365 Users lets you access user profiles in your organization using your Office 365 account. You can perform various actions such as get your profile, a user's profile, a user's manager or direct reports.
21
22
22
23
You can display this information in a label on your app. You can display one function, multiple functions, or even combine different functions. For example, you can create an expression that combines the User Name and Phone Number, and then display this information in your app.
23
24
24
-
This topic shows you how to add Office 365 Users as a connection, add Office 365 Users as a data source to your app, and use table data in a gallery control.
25
+
This article shows you how to add Office 365 Users as a connection, add Office 365 Users as a data source to your app, and use table data in a gallery control.
0 commit comments