{"id":168,"date":"2009-11-30T06:09:00","date_gmt":"2009-11-30T00:39:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=168"},"modified":"2009-11-30T06:09:00","modified_gmt":"2009-11-30T00:39:00","slug":"how-to-track-the-next-action-and-last-touch-dates-on-account","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2009\/11\/how-to-track-the-next-action-and-last-touch-dates-on-account\/","title":{"rendered":"How to Track the Next Action and Last Touch dates on Account"},"content":{"rendered":"<p>Quite often you need to monitor and have workflows designed based on the &#8220;Last Touch Date&#8221; or the &#8220;Next Action&#8221; date. While the former should reflect the last interaction made with the customer, the later is to keep track of the next upcoming interaction with the customer.<br \/>\nEnd users often believe the Modified date reflected on the Account form, is the &#8220;Last Touch Date&#8221;. Well, that is not true. The Modified date on the Account Form is only updated when any changes are made directly to any of the attributes on the account form. Even adding of a note to the account does not update the &#8220;Modified Date&#8221;. To track the true &#8220;Last Touch date&#8221;, you would require to write a custom plugin or perhaps a Workflow could do the job as well.<br \/>\n<strong><span style=\"text-decoration: underline;\">How to track &#8220;Last Touch Date&#8221; using Workflow.<\/span><\/strong><br \/>\nYou need to trap the create\/update\/status change events of all the activities that you need to track for an account. Assuming that we would set the regarding to Account for each activity that we create.<br \/>\n1. New Worklow &#8211; Set the entity as Appointment &#8211; Event Create, Update and Status change<br \/>\n<a href=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/SxNiBAcBUkI\/AAAAAAAAAN0\/NnHkSO9tPNE\/s1600\/1.jpg\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/SxNiBAcBUkI\/AAAAAAAAAN0\/NnHkSO9tPNE\/s400\/1.jpg\" alt=\"\" border=\"0\" \/><\/a> 2. Add step to Update entity as shown as below screenshot.<\/p>\n<div><a href=\"http:\/\/4.bp.blogspot.com\/_pMlyDuF-ngc\/SxNiAnKUXnI\/AAAAAAAAANs\/6jqqtUOS7BI\/s1600\/2.jpg\"><img decoding=\"async\" src=\"http:\/\/4.bp.blogspot.com\/_pMlyDuF-ngc\/SxNiAnKUXnI\/AAAAAAAAANs\/6jqqtUOS7BI\/s400\/2.jpg\" alt=\"\" border=\"0\" \/><\/a> 3. Choose Regarding(Account) as shown as below screenshot.&nbsp;<\/p>\n<div><a href=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/SxNiAUQsZFI\/AAAAAAAAANk\/2KvCMx2YGkQ\/s1600\/3.jpg\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/SxNiAUQsZFI\/AAAAAAAAANk\/2KvCMx2YGkQ\/s400\/3.jpg\" alt=\"\" border=\"0\" \/><\/a><br \/>\n4. Select custom date attribute for tracking &#8220;Last touch&#8221; set date = Workflow execution as shown in the below screenshot.&nbsp;<\/p>\n<div><a href=\"http:\/\/1.bp.blogspot.com\/_pMlyDuF-ngc\/SxNiAMYPRDI\/AAAAAAAAANc\/h1T68XvIQVU\/s1600\/4.jpg\"><img decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/_pMlyDuF-ngc\/SxNiAMYPRDI\/AAAAAAAAANc\/h1T68XvIQVU\/s400\/4.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<div><strong><span style=\"text-decoration: underline;\">How to track &#8220;Last Touch Date&#8221;\/Next Action Date using Plugins.<\/span><\/strong>You need to write Plugin to trap the create\/update\/chnage status events of the activities. In the Post event, read the account associated with the activity and update the &#8220;Last Touch Date&#8221; with today&#8217;s date.<br \/>\nFor the next action date, in each of these events, you need to read the account associated with the activity. Using the RollupActivitiesforAccount \u201cTargetRollupActivityPointerByAccount\u201d you can get the next due activity and update the &#8220;Next Action Date&#8221; to this date.\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Quite often you need to monitor and have workflows designed based on the &#8220;Last Touch Date&#8221; or the &#8220;Next Action&#8221; date. While the former should reflect the last interaction made with the customer, the later is to keep track of the next upcoming interaction with the customer. End users often believe the Modified date reflected\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2009\/11\/how-to-track-the-next-action-and-last-touch-dates-on-account\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"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":[19,67],"tags":[82,982,1723],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm","category-workflows","tag-accounts","tag-last-action","tag-track-next-action"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/168","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=168"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}