Office 365: Download Email Attachments
Description
Office 365: Download Email Attachments plugin step downloads email attachments of an Office 365 user. This step also downloads an image that is not an attachment but part of the body of an email.
Permission: For Office 365 download emails attachment following permissions are needed.
Permission type | Permission (from least to most privileged) |
---|---|
Delegated | Mail.Read |
Delegated | offline_access |
References https://docs.microsoft.com/en-us/graph/api/user-delete?view=graph-rest-1.0
Configurations
No. | Field Name | Description |
---|---|---|
1 | Step Name | Name of the step. This name has to be unique in a single workflow. |
Connection: | For details about app registration, see Office 365 App Registration for Grant Type – Password Grant or Office 365 App Registration for Grant Type Refresh Token | |
2 | Grant Type | Select the type of grant from Password Grant or Refresh Token. The data type is string. This field is mandatory. Note: It is recommended to select the grant type from Refresh Token. |
3 | Tenant ID | Tenant ID of Microsoft Account. The data type is string. This field is mandatory. |
4 | Client ID | Client ID of the Application created in Microsoft Account. The data type is string. This field is mandatory. |
Client Secret: | Client Secret generated in Microsoft Account. | |
5 | Accept Value as variable/static | Leave checkbox unchecked to accept Client Secret value from a field in the previous steps of the stream using a drop down list. Else enable checkbox for Client Secret field to appear as Text box. |
6 | Client Secret | Specify the Client Secret generated in Microsoft Account. Client Secret is entered using a widget. The widget handles both Text (static value or environment variable) and Combo (drop down containing values from previous steps). If checkbox above is enabled Client Secret field appears as a Text box and accepts static or variable values. Else if checkbox above is disabled Client Secret field appears as a drop down to select fields from previous steps. The data type is secure string. This field is mandatory. |
6 | Refresh Token | Note: The field is available only if you select Refresh Token as the grant type. |
6.a | Accept Value as variable/static | Leave checkbox unchecked to accept the refresh token from a field in the previous steps of the stream using a drop down list. Else enable checkbox for Refresh Token field to appear as text box. |
6.b | Refresh Token | Provide the refresh token to authenticate. |
7 | Username | Specify the Username for sending emails. Note: The field is available only if you select Password Grant, as the grant type. |
8 | Password: | |
8.a | Accept Value as variable/static | Leave checkbox unchecked to accept Client Secret value from a field in the previous steps of the stream using a drop down list. Else enable checkbox for Client Secret field to appear as Text box. |
8.b | Password | Specify the Password for provided Username. If checkbox above is enabled Password field appears as a Text box and accepts static values or variable. Else if checkbox above is disabled Password field appears as a drop down to select fields from previous steps. The data type is secure string. This field is mandatory. |
9 | Button: Test Connection | Test connection with Client ID and Client Secret provided.Verifies whether the connection is established or not. Note: For the purpose of verification fields coming from previous steps are not allowed since field values can only be accessed when workflow is in running state. Static values and environment variables are allowed. |
Input Tab: | ||
Input Fields: | ||
1 | Message ID | Provide Message ID of the email for which attachments are to be downloaded.You may fetch Message ID using the O365: Email Message Input Step. The data type is String. This field is mandatory. |
2 | Attachment Folder | Specify the Folder path where mail attachments are to be saved. The data type is String. This field is mandatory. Note: If the folder is not present the complete folder path will be created. |
3 | Button: Browse | Click Get button to browse the Attachment Folder path. |