{"id":11180,"date":"2018-02-09T17:44:05","date_gmt":"2018-02-09T12:14:05","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=11180"},"modified":"2018-02-09T17:44:05","modified_gmt":"2018-02-09T12:14:05","slug":"track-parent-email-using-parent-activity-id-field-on-email-entity-in-dynamics-365","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2018\/02\/track-parent-email-using-parent-activity-id-field-on-email-entity-in-dynamics-365\/","title":{"rendered":"Track Parent Email using Parent Activity ID Field on Email Entity in Dynamics 365"},"content":{"rendered":"<h2 style=\"text-align: justify;\"><strong>Introduction: <\/strong><\/h2>\n<p style=\"text-align: justify;\">Email in Microsoft Dynamics 365 is one of the widely use feature to achieve the conversation with the customer as well as to keep track of the conversation happened with internal users.<\/p>\n<p style=\"text-align: justify;\">Recently, we had a business requirement, where the user wants to pull some details from initial mail in replied email record.<\/p>\n<h2 style=\"text-align: justify;\"><strong>Below is the scenario client wants to achieve:<\/strong><\/h2>\n<p style=\"text-align: justify;\">Let\u2019s assume we sent a below email <strong><em>\u201cCRM: 005009\u201d<\/em><\/strong>:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-11181\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/02\/Track-Parent-Email-using-Parent-Activity-ID-Field-on-Email-Entity-in-Dynamics-365.png\" alt=\"Track Parent Email using Parent Activity ID Field on Email Entity in Dynamics 365\" width=\"972\" height=\"456\" \/><\/p>\n<p>And wants to reply on the same email, so we clicked on \u201cREPLY ALL\u201d OR \u201cREPLY\u201d button. Now below email record would be created i.e. <strong>\u201c<em>RE: CRM: 0005009\u201d<\/em><\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-11182\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/02\/Track-Parent-Email-using-Parent-Activity-ID-Field-on-Email-Entity-in-Dynamics-3651.png\" alt=\"Track Parent Email using Parent Activity ID Field on Email Entity in Dynamics 365\" width=\"969\" height=\"555\" \/><\/p>\n<p style=\"text-align: justify;\">Here now we want to pull the Initial \u201c<strong><em>CRM: 0005009<\/em><\/strong>\u201d emails Queue Name in the replied email \u201c<strong><em>RE: CRM: 0005009<\/em><\/strong>\u201d.<\/p>\n<p style=\"text-align: justify;\">So to track the initial email we looked into the field structure of \u201cEmail\u201d entity and noticed the \u201cParent Activity Id\u201d field which is a type of Email lookup and it has the Referential type of relationship with email entity.<\/p>\n<p style=\"text-align: justify;\">So, we ran a query in advanced find to check the difference between both email records. As you can see in the below screenshot, there is look up of initial email \u201c<strong><em>CRM: 0005009<\/em><\/strong>\u201d is set on replied email \u201c<strong><em>RE: CRM: 0005009<\/em><\/strong>\u201d by using this field we can pull the details of initial email and set in the replied email.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter  wp-image-11183\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/02\/Track-Parent-Email-using-Parent-Activity-ID-Field-on-Email-Entity-in-Dynamics-3652.png\" alt=\"Track Parent Email using Parent Activity ID Field on Email Entity in Dynamics 365\" width=\"976\" height=\"190\" \/><\/p>\n<p>Below is the Referential relationship structure of Email entity for field <strong>\u201c<em>Parent Activity Id\u201d<\/em><\/strong>:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-11184\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/02\/Track-Parent-Email-using-Parent-Activity-ID-Field-on-Email-Entity-in-Dynamics-3653.png\" alt=\"Track Parent Email using Parent Activity ID Field on Email Entity in Dynamics 365\" width=\"971\" height=\"479\" \/><\/p>\n<h2><strong><em>Conclusion:<\/em><\/strong><\/h2>\n<p>In replied emails, the Parent Activity Id field store the parent or initial email lookup which is useful to track parent email.<\/p>\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Email in Microsoft Dynamics 365 is one of the widely use feature to achieve the conversation with the customer as well as to keep track of the conversation happened with internal users. Recently, we had a business requirement, where the user wants to pull some details from initial mail in replied email record. Below\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2018\/02\/track-parent-email-using-parent-activity-id-field-on-email-entity-in-dynamics-365\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":11185,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,19],"tags":[722,1295,1724],"class_list":["post-11180","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-crm","tag-email-entity-in-dynamics-365","tag-parent-activity-id-field-dynamics-crm","tag-track-parent-email"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/11180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=11180"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/11180\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/11185"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=11180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=11180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=11180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}