Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Dynamics 365 App for Outlook Part 4-Working with Emails

Welcome back to part 4 of the Dynamics 365 App for Outlook series. In this post, we are going focus on more specific Email tracking scenarios. In the following days, we will break down appointments and contacts.

The first area that needs some attention is automatic email tracking.

In the last post, we went through the email filtering settings in a user's personal options. If a user's personal options (email filtering) are set to track all emails, this will track all email messages regardless, no matter if it is a Dynamics 365 Record or not. However, the Sent folder is not tracked by default. If you are using this setting and want the Sent folder to also track, you would need to enable the AutoTrackSentFolderItems OrgDbOrgSetting using this tool.

Unless there is strict Exchange and Outlook governance for what users can and cannot store in Outlook, this setting may not be the best option. It will promote all items to Dynamics, whether they are related to Dynamics or not. In most cases, I see this used only for troubleshooting to ensure emails are promoted into Dynamics and not in live production environments unless emails are governed appropriately. Yes, this means a personal email could be promoted into Dynamics.

In most cases, the setting Email messages in response to 365 email is used. It is also the default setting. However, it is best to evaluate each option to determine what is best for your organization.

Since this is a user controlled setting, an administrator can view and update this using the User Settings Utility within XRMToolbox.

How are emails, replies or forwards, tracked that are part of a conversation, that I may not want tracked in Dynamics 365?

Example A:

      1. User A sends an email to multiple recipients, including contacts and other Dynamics users
      2. User B replies to this thread
      3. Contact A also replies to this thread
      4. User B replies to the thread, but removes Contact A as a recipient
      5. They do not want this reply automatically tracked

In this case, it will automatically track because it identifies the ConversationIndex and In-Reply-To values as an email that is part of a thread.

To have this email untracked, the user would have to manually untrack the reply with the App for Outlook as well as any replies to this because the master email is still tracked.

Example B:

      1. User A sends an email to multiple recipients, including contacts and other Dynamics users
      2. User B forwards this thread to another user for internal conversation
      3. They do not want the information in this forward automatically tracked

In this case, it will automatically track because it identifies the ConversationIndex and In-Reply-To values as an email that is part of a thread.

To have this email untracked, the user would have to manually untrack the forward with the App for Outlook as well as any replies to this because the master email is still tracked.

Example C:

      1. User A sends an email to multiple recipients, including contacts and other Dynamics users
      2. User B forwards this thread to another user for internal conversation AND changes the subject
      3. They do not want this forward or replies automatically tracked

In this case, it will automatically track because it identifies the ConversationIndex and In-Reply-To values as an email that is part of a thread.

To have this email untracked, the user would have to manually untrack the forward with the App for Outlook as well as any replies to this because the master email is still tracked.

If you untrack a reply or forward to a thread on an email, and if the initial/master email is still tracked, it will continue to track replies. If there are certain replies you do not want to track, you will need to untrack these manually.

There was a setting used in the previous Outlook Client to prevent automatic tracking of Replies and Forwards, however this does not work with the App for Outlook because the actual tracking is done by Server Side Sync. There is a product suggestion that would be helpful here to create a NONE option for automatic tracking. If this setting were made to work with the App for Outlook, it would require manually tracking any replies or forwards you would like promoted to Dynamics. There is a product enhancement suggestion available here. Whichever way you look at it, there will be manual tracking or untracking of these replies and emails.

When resolving recipient email addresses to records in Dynamics, if there is more than one record in Dynamics with the same email address, which record is it resolved to?

It resolves using the method below:

If there are duplicate records within Dynamics 365 with the same email address, the contents of the email From field will resolve to the first active record in the following order on an incoming email:

      1. SystemUser- should always be first
      2. Contact
      3. Account
      4. Lead
      5. Equipment
      6. Team
      7. Business unit
      8. Email-enabled entities (for example: Queues, custom, etc.)

Emails will not resolve to inactive User records in the From field. There is a setting to resolve to other inactive entity records but this does not include Users: ResolveForInactiveEntities

Here are some additional points on how it resolves recipient records in the To or CC field of an incoming email:

If there is an inactive user in the recipients line, the App for Outlook may show that the user matches the email, but when you track, the promotion will not resolve to that email for the inactive user and it will show up in red as unresolved. It will not resolve to inactive users regardless of the ResolveForInactiveEntities setting.

 

If the email address is tied to an active user, it will display that in the App recipients pane, but it will still resolve to each active Dynamics record with that email address once it is promoted. If the ResolveForInactiveEntities setting is True, it will also resolve to inactive entity records except Users.

The App for Outlook will only show one of these records in the recipients pane, but in Dynamics, it will resolve to all records with that email address on incoming emails as long as Set To,cc,bcc fields to unresolved values if multiple matches are found is set to No in System Settings

Here are some additional points on how the To or CC field resolves on a tracked sent item:

If the user is active and there is a contact, it will resolve to both records, although it will show resolved to the user in the App for Outlook. It will resolve to all active records that match that email address or also inactive records if you have enabled ResolveForInactiveEntities. Again, this does not include users. You can see below it resolves to an Account, User, Contact and Lead.

If the User is Inactive, it may appear that the record is found/resolved in the App, however, when the item promotes into Dynamics, it will show up as unresolved.

One important thing to mention here is that this does NOT resolve to records only in the default email address fields. If you have a custom Single Line of Text field with Email format on a Contact record, you may see some interesting results.

For example:

      • Bob Jones is a user inside Dynamics, and on the User form, the email data field of “Primary Email” has the value [email protected]
      • There is an Opportunity record named “BobOpp” with the email data field of “Email” set to [email protected]
      • There is a Case record named “BobCase” with the email data field of “Email” set to [email protected]
      • There is a Contact record named “Leslie Baker” set to primary email of [email protected] with the email data field of “Contact Approver” set to [email protected]
      • There is another Contact record named “Greg Marcus” set to primary email of [email protected] with the email data field of “Contact Approver” set to [email protected]
      • There is another Contact record named “Happy Hogan” set to primary email of [email protected] with the email data field of “Contact Approver” set to [email protected]
      • The System Setting of “Set To,cc,bcc fields as unresolved values if multiple matches are found in Incoming Emails” is set to No
      • There is an email in Bob’s mailbox where [email protected] is on the To: and CC: line

If this email is promoted into Dynamics due to Bob tracking the email through Dynamics App for Outlook (as an example), the promoted email in Dynamics will show the following values:

To: Bob Jones; BobOpp; BobCase; Leslie Baker; Greg Marcus; Happy Hogan

CC: Bob Jones; BobOpp; BobCase; Leslie Baker; Greg Marcus; Happy Hogan

In the screenshots below you can see this example with only the contact records. (disregard my name in the To line. I sent to myself to track the item to demonstrate correlation)

Can I remove the option for users to Track without Regarding, so they are forced to Set Regarding to a record in Dynamics?

No, you cannot force users to Set Regarding on an email or appointment instead of allowing them the ability to Track Without Regarding. If you are migrating from the legacy Outlook client, you may have been using an OrgDbOrgSetting (OverrideTrackInCrmBehaviour) that did allow this functionality. This setting is not honored by the App for Outlook.

What happens if I receive a reply to a previously tracked email and choose to reply back before it is tracked. (This is not immediate tracking, so it waits for the async service to pick it up for tracking)

Replying to emails before it is tracked will still track during the next sync cycle. If you have been using the legacy Outlook client for years, this scenario was different, where a response to a previous reply that is not yet tracked would not be tracked. So that is no longer an issue if you had encountered this in the past. It will still track.

However, this can still be confusing for users where they may think that since they are responding to a reply that does not show up yet as tracked, that their reply will not be tracked either. Here is a break out:

      1. User A sends Tracked email to User B.
      2. User B received email, but it does not show as tracked yet in their inbox (due to asynchronous processing).
      3. User B replies (they could also forward) the message with sensitive information that should not reside in Dynamics 365. Now that message will end up in Dynamics 365 with the sensitive information.

Synchronous tracking would help this situation, but at the time of this post, that is not how emails are promoted/tracked into Dynamics. Something to be aware of.

How can I tell from Outlook if an email or appointment is tracked in Dynamics?

      • If you are familiar with the legacy Outlook client, there was an icon that appeared on tracked items, making it easy to determine if the record was tracked. Unfortunately, with the App for Outlook, there is no icon to show if it is tracked.

What you can do for emails, is pin the App. This will stay pinned as you navigate through emails. However, this does not work for appointments.

The other option is to use Category Tracking. I will not be going into this during this blog series. We may be looking at this in a future post. However, be sure you test this feature thoroughly to ensure it works for your needs.

When I open the App for Outlook, I see the message, "Create contacts first to avoid duplicates." Can I disable this?

No. This is not configurable and will appear when the sender of the email is unknown (does not resolve to a Dynamics record)

Which emails are tracked immediately vs. asynchronously?

At the time of this post, this is the most recent functionality

Use Case Initial Promotion Method Fallback Promotion Method
Email without attachments in read mode for the first time Immediate Async
Recipient tracks a previously untracked email Async Async
Track an email in compose mode Async Async
Track an email with attachments Immediate Async

How are tracked Email deletions handled?

Email deletions in Dynamics 365

      • Deleting an email message in Microsoft Dynamics 365 does not delete the tracked message from Outlook/Exchange.

Email deletions in Outlook

      • Deleting a tracked email message in Outlook does not delete the email message from Microsoft Dynamics 365.
      • If you stop tracking an email message in Outlook, the App for Outlook asks whether you want to delete the email message in Microsoft Dynamics 365.

Thank you!

Aaron Richards

Share the post

Dynamics 365 App for Outlook Part 4-Working with Emails

×

Subscribe to Msdn Blogs | Get The Latest Information, Insights, Announcements, And News From Microsoft Experts And Developers In The Msdn Blogs.

Get updates delivered right to your inbox!

Thank you for your subscription

×