O365 Email Migration from Exchange Mail

Hello Everyone,

We are migrating email activities from exchange mail to O365. We have registered in Azure AD, and got the application ID, application secret, tenant ID. I know we can use O365 scope for connections.

Questions:
What are the activities we can used inside of O365?
Can I still use exchange mail activities for o365?

Thank you!

1 Like

@l.wang

If you seach with office 365 you will get list of activities that you can use

Exchange activities cannot be used in office 365

You have dedicated activities for it like get mails, send mail etc

Please check this for all activities

https://docs.uipath.com/activities/other/latest/productivity/about-the-microsoft-office-365-activities-pack

A few related to mail

Cheers

Hi @l.wang

No, you no longer use the Exchange activites

To use the O365 activies you need to install the microsoft 365 package

image

Once installed you can see all the available activities in the activities panel

Also as @Anil_G mentioned you can refer the docs as well

Thanks,
Srini

Hello @l.wang

  1. Create a new sequence in UiPath.

  2. Add the following activities to the sequence:

    a. “Microsoft Office 365 Scope”:

    • Configure the properties like “ApplicationId,” “ClientSecret,” “TenantId,” and any other necessary authentication details.

    b. “Get O365 Mail Messages”:

    • Within the Office 365 scope, add this activity.
    • Configure the properties like “MailFolder” (e.g., “Inbox”), “Filter” (if needed), and specify where you want to store the retrieved messages (e.g., a list variable).

    c. “For Each” loop:

    • Use this activity to loop through the retrieved email messages.
    • Set the TypeArgument of the “For Each” loop to System.Net.Mail.MailMessage (assuming you’re using .NET MailMessage objects).

    d. Inside the “For Each” loop, you can add activities to process each email message as needed. For example:

    • Use the “Get IMAP Mail Message” activity to extract information like Subject, Body, Sender, etc., from each email.
    • You can use variables to store this information for further processing or logging.
  3. Customize the activities within the “For Each” loop to suit your specific needs, such as saving attachments, sending responses, or performing other actions based on the content of each email.

  4. Save and execute the workflow.

Thanks & Cheers!!!

Thank you!

But in Exchange Mail activities, there are Office 365 settings. I wonder how it works. Any thoughts?

Thank you very much!

Thanks for the details.

1 Like

@l.wang

That does not have client id and secret I guess

cheers

Hi

As for your question about using Exchange Mail activities with Office 365, the Exchange Mail activities are specifically designed for connecting to on-premises Exchange servers. To work with Office 365, it’s recommended to use the O365 activities as they are tailored for this cloud-based service. While some Exchange activities might work with Office 365, it’s better to use the dedicated O365 activities for a more seamless experience and to take full advantage of Office 365’s features.

There are many apart from just sending mails with O365 activities

Refer this for more ideas

Hope this clarifies

Cheers @l.wang

It does have O365 settings with client id, and directory id.

@l.wang

Client secret is what is missing…you can sue other authentications

cheers