{"id":539,"date":"2020-07-22T14:00:00","date_gmt":"2020-07-22T14:00:00","guid":{"rendered":"http:\/\/stirna.is\/?p=539"},"modified":"2020-07-22T14:00:00","modified_gmt":"2020-07-22T14:00:00","slug":"follow-your-recipients-activity-in-dynamics-365","status":"publish","type":"post","link":"https:\/\/stirna.is\/?p=539","title":{"rendered":"Follow your recipient&#8217;s activity in Dynamics 365"},"content":{"rendered":"\n<p class=\"has-small-font-size wp-block-paragraph\">Tasks: Send a notification when a contact opens a Dynamics 365 attachment<br>Difficulty: Intermediate<br>Time to implement: 1-2 hours<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post I&#8217;ll show you how you can use the Email Engagement solution, which I showed you how to configure in my <a href=\"\/tracking-opens-and-clicks-of-dynamics-365-emails\">previous post<\/a>, to automatically sending a notification when a contact\/recipient has opened a Dynamics 365 email attachment. <\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-rich wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Follow your recipient activity in Dynamics 365\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/ji-Zs8-t-RA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Tools<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Dynamics 365 Sales:<\/strong> A popular CRM system from Microsoft that allows you to track your sales pipeline and activities, opportunities, and leads.<\/li><li><strong>Email Engagement:<\/strong> One of Sales Insights&#8217; solutions that enables you to follow emails in Dynamics 365 Sales. See my post <a href=\"\/tracking-opens-and-clicks-of-dynamics-365-emails\">Tracking opens and clicks of Dynamics 365 emails<\/a> to see how it is enabled.<\/li><li><strong>Power Automate:<\/strong> A service from Microsoft that allows you to connect different systems and create automated processes. In this example it is used to create a task and send a notification to the owner of a Dynamics 365 email message when an attachment is opened. In this post premium connectors are used that require a premium license for Power Automate.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Email Engagement follow up options<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Email Engagement allows you to follow emails you send from Dynamics 365. It also gives you an option to set reminders to follow up on emails. The available options are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If I do not receive a reply by<\/li><li>If the email is not opened by<\/li><li>Remind me anyway at<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/34.74.14.69\/wp-content\/uploads\/2020\/07\/blog-07-02a.png?w=984\" alt=\"\" class=\"wp-image-548\" width=\"610\" height=\"477\" srcset=\"https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02a.png 984w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02a-300x235.png 300w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02a-768x602.png 768w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><figcaption>Set reminder options<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The reasoning behind these options is that a salesperson wants to be able to follow up if there is no recipient activity. Another use case is when there is a recipient activity, the salesperson might want to follow up. E.g. when an email attachment containing a quote or a pricing is opened. The purpose of this exercise is to expand the current options to enable notification when a contact\/recipient opens an attachment that is tracked via Email Engagement. To this end we will leverage Power Automate to send the notification. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A prerequisite to perform the work in this exercise is that you have already <a href=\"\/tracking-opens-and-clicks-of-dynamics-365-emails\">enabled Email Engagement in your Sales Insights settings<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/power-platform\/admin\/enable-onedrive-for-business\" target=\"_blank\" rel=\"noreferrer noopener\">OneDrive integration in Dynamics 365<\/a>, and that you have the appropriate licenses and permissions, of course.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create and configure a flow<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You start by navigating to flow.microsoft.com, create a flow from blank and choose the &#8216;When a record is updated&#8217; trigger. This will open up the flow designer. To configure the flow you:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Choose current environment in Environment.<\/li><li>Choose Email messages in Entity name.<\/li><li>Choose Organization in Scope.<\/li><li>Under advanced options choose attachmentopencount. This lets the Flow know which fields on the email record you would like to monitor. In this case you want to monitor changes to the Attachment open count.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Next you insert a condition that checks if the number of opens your attachment has received is more than zero and that a category does not contain a specific value (we will come back to this later).<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li>Click on the &#8216;New step&#8217; button.<\/li><li>Select Condition.<\/li><li>In the first condition insert Attachment open count equal to or greater than 1.<\/li><li>In the second condition insert Category does not contain &#8216;Notification sent\u2019.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1214\" height=\"1258\" src=\"http:\/\/34.74.14.69\/wp-content\/uploads\/2020\/07\/blog-07-02b.png?w=988\" alt=\"\" class=\"wp-image-551\" srcset=\"https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02b.png 1214w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02b-290x300.png 290w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02b-988x1024.png 988w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02b-768x796.png 768w\" sizes=\"auto, (max-width: 1214px) 100vw, 1214px\" \/><figcaption>When a record is updated trigger and the condition<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When the condition is true you want the email notification to be sent. First you need to get the user information and then you will send the notification. Lastly you want to update the email message to ensure that the user doesn\u2019t receive more than one notification.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"10\"><li>In the \u2018If yes\u2019 box click \u2018Add an action\u2019.<\/li><li>Choose Get record (CDS).<\/li><li>Choose current environment in Environment.<\/li><li>Choose Users in Entity name.<\/li><li>Put in the Owner of the email message as the Item identifier.<\/li><li>Below the Get record action, click \u2018Add an action\u2019.<\/li><li>Choose Send an email notification (V3). You might have to authenticate or accept to continue.<\/li><li>In the To field insert the Primary Email from the user record.<\/li><li>Fill in the subject and body of the email. You can use Dynamic content here which is recommended so the user knows which email\/contact you are referring to.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1282\" height=\"1258\" src=\"http:\/\/34.74.14.69\/wp-content\/uploads\/2020\/07\/blog-07-02c-1.png?w=1024\" alt=\"\" class=\"wp-image-552\" srcset=\"https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02c-1.png 1282w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02c-1-300x294.png 300w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02c-1-1024x1005.png 1024w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02c-1-768x754.png 768w\" sizes=\"auto, (max-width: 1282px) 100vw, 1282px\" \/><figcaption>Get record and Send an email notification (V3) actions<\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"19\"><li>Below the Send an email notification (V3) action, click \u2018Add an action\u2019.<\/li><li>Choose Update a record (CDS).<\/li><li>Choose current environment in Environment.<\/li><li>Choose Email Messages in Entity name.<\/li><li>In the record identifier put in the Email Message ID.<\/li><li>Click \u2019Show advanced options\u2019 and type in &#8216;Notification sent\u2019. This is necessary to indicate somewhere on the record that a notification has been sent to the user. You can use any field. In this case I am using an OOB field called Category. If you are using Category for something else you may consider creating a custom field to store this value.<\/li><li>Click Save to save your flow.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1274\" height=\"1398\" src=\"http:\/\/34.74.14.69\/wp-content\/uploads\/2020\/07\/blog-07-02d.png?w=933\" alt=\"\" class=\"wp-image-553\" srcset=\"https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02d.png 1274w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02d-273x300.png 273w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02d-933x1024.png 933w, https:\/\/stirna.is\/wp-content\/uploads\/2020\/07\/blog-07-02d-768x843.png 768w\" sizes=\"auto, (max-width: 1274px) 100vw, 1274px\" \/><figcaption>Update the Email Message<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the flow<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can now test your flow to see if everything works as it should. Do a couple of test runs on the same email message to verify that only one notification email is sent when an attachment is opened multiple times (note that the email must be sent through Dynamics 365 with a followed attachment). For more information about performing the tests, please refer to the blog post&#8217;s video above. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tasks: Send a notification when a contact opens a Dynamics 365 attachmentDifficulty: IntermediateTime to implement: 1-2 hours In this post I&#8217;ll show you how you can use the Email Engagement solution, which I showed you how to configure in my previous post, to automatically sending a notification when a contact\/recipient has opened a Dynamics 365 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":545,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[13,14,15,21],"class_list":["post-539","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","tag-dynamics-365-sales","tag-dynamics-crm","tag-email-engagement","tag-power-automate"],"_links":{"self":[{"href":"https:\/\/stirna.is\/index.php?rest_route=\/wp\/v2\/posts\/539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stirna.is\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stirna.is\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stirna.is\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stirna.is\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=539"}],"version-history":[{"count":0,"href":"https:\/\/stirna.is\/index.php?rest_route=\/wp\/v2\/posts\/539\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stirna.is\/index.php?rest_route=\/wp\/v2\/media\/545"}],"wp:attachment":[{"href":"https:\/\/stirna.is\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stirna.is\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stirna.is\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}