Move Mail
Move Mail enables you to move an e-mail with the help of ID. Only a single e-mail can be moved at a time.
NOTE: |
Ensure that a valid ID of the mail is passed while using Move Mail feature. The ID can be extracted using Search Mail feature & JSON Activity. If the provided ID of the mail is not found, then the test run may fail. |
Using Move Mail feature
- Make sure the prerequisites for using Office 365 activities are met.
- In the Canvas Tools pane, click Office 365 Services to expand the tool and view the associated activities.
- Drag the Outlook 365 activity inside the Office 365 Application Activity. Ensure that the output token of the OAuth process is passed on to the Outlook activity for authentication. For more information, see OAuth Activity.
- The validation error symbol disappears when you select relevant values in the particular field from the available list. For example, Access Token, Feature, Output Variable, or Input Configurator values.
- The validation error symbol disappears when you select relevant values in the particular field from the available list. For example, Access Token, Feature, Output Variable, or Input Configurator values.
-
In the Access Token list, select the type of token from the argument created.
-
In the Feature list, select Move Mail.
-
Click the
(Setting) icon to configure the input configuration. The Input Configuration screen appears.
-
Ensure to define all the input parameters as an in argument in the Parameter bar for selection in the mandatory and advanced options.
-
The Input configuration consists of two types of parameter which must be entered.
-
Mandatory Options:
-
In the Id list, select the parameter holding the ID (unique Identifier) of the email to be moved.
-
In the Destination Folder list, select the parameter holding the accepted folder names(mentioned above in the screenshot in Search Mail) to which the e-mail must be moved.
-
You can select the Is Default Value checkbox to set the selected input parameter as the default value.
-
Once done, click Confirm.
-
-
-
-
In the Output list, select the argument which should store the result. The argument should be of Out Direction.
-
Save the process.
In the Tool bar, click Setup Environment.
NOTE:
You must select the relevant scope as per the activities in the automation process.
-
Once environment setup is completed perform the Test Run. The studio console will display the successful message with the required output. Here, id corresponds to the new ID (unique identifier) of the mail that is moved.
-
Output is of the format :
{
"Response": "Moved mail Successfully",
"id": "AAMkAGY3NDRmNzdmLTRiMWEtNDA5Ny05YTJmLTFhMzQ3YTA5OTVlOABGAAAAAACfaX52GHerSKvCFG4IUz2HBwBmk5_iauTiRZDadYaft_edAAAAAAEMAABmk5_iauTiRZDadYaft_edAAAY1YzcAAA="
}
-