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?
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.
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.
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