{"id":392,"date":"2010-11-16T00:38:29","date_gmt":"2010-11-16T00:38:29","guid":{"rendered":"http:\/\/mahenderpal.wordpress.com\/?p=392"},"modified":"2010-11-16T00:38:29","modified_gmt":"2010-11-16T00:38:29","slug":"close-activity-based-on-due-date-using-workflow","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=392","title":{"rendered":"Close Activity based on Due Date using workflow"},"content":{"rendered":"<div id=\"_mcePaste\" class=\"mcePaste\" style=\"left:-10000px;overflow:hidden;width:1px;position:absolute;top:0;height:1px;\">\ufeff<\/div>\n<div><span style=\"font-size:small;font-family:Calibri;\">\u00a0<\/span><\/div>\n<p><span style=\"font-size:small;font-family:Calibri;\"><\/p>\n<p class=\"MsoNormal\" style=\"margin:0 0 10pt;\"><span style=\"font-size:10.5pt;line-height:115%;\">I got one requirement from my client where we need to complete Email activity based on it\u2019s Due date. so I have to check if current date is equal to email\u2019s due date then close email activity. So I created a workflow to implement this. Here are the steps to create workflow <\/span><\/p>\n<p class=\"MsoListParagraphCxSpFirst\" style=\"text-indent:-.25in;margin:0 0 0 .5in;\"><span style=\"font-size:10.5pt;line-height:115%;\"><span>1.<span style=\"font:7pt &quot;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span style=\"font-size:10.5pt;line-height:115%;\">Create new workflow select Entity as Email, Give some name to workflow like \u201cClose Email\u201d, Select new Blank workflow.<\/span><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"text-indent:-.25in;margin:0 0 0 .5in;\"><span style=\"font-size:10.5pt;line-height:115%;\"><span>2.<span style=\"font:7pt &quot;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span style=\"font-size:10.5pt;line-height:115%;\">Select Run when record is created.<\/span><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\" style=\"text-indent:-.25in;margin:0 0 0 .5in;\"><span style=\"font-size:10.5pt;line-height:115%;\"><span>3.<span style=\"font:7pt &quot;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span style=\"font-size:10.5pt;line-height:115%;\">Select \u201cWait Condition\u201d<\/span><\/p>\n<p>\u00a0<\/p>\n<p><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin:0 0 10pt .5in;\"><span style=\"font-size:small;font-family:Calibri;\">Timeout until Email:Due Date<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin:0 0 10pt .5in;\"><span style=\"font-size:small;font-family:Calibri;\"><a href=\"http:\/\/mahenderpal.files.wordpress.com\/2010\/11\/timeout.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-393\" title=\"timeout\" src=\"http:\/\/mahenderpal.files.wordpress.com\/2010\/11\/timeout.jpg\" alt=\"\" width=\"500\" height=\"79\" \/><\/a><\/span><\/p>\n<p class=\"MsoListParagraphCxSpFirst\" style=\"text-indent:-.25in;margin:0 0 0 .5in;\"><span style=\"font-size:10.5pt;line-height:115%;\"><span><span style=\"font-family:Calibri;\">5.<\/span><span style=\"font:7pt &quot;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span style=\"font-size:10.5pt;line-height:115%;\"><span style=\"font-family:Calibri;\">Select Row under and add new step \u201cChange record status\u201d and set email status as completed.<\/span><\/span><\/p>\n<p class=\"MsoListParagraphCxSpLast\" style=\"text-indent:-.25in;margin:0 0 10pt .5in;\"><span style=\"font-size:10.5pt;line-height:115%;\"><span><span style=\"font-family:Calibri;\">6.<\/span><span style=\"font:7pt &quot;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span style=\"font-size:10.5pt;line-height:115%;\"><span style=\"font-family:Calibri;\">It should look like as below.<\/span><\/span><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"http:\/\/mahenderpal.files.wordpress.com\/2010\/11\/fulltimeout.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-394\" title=\"fulltimeout\" src=\"http:\/\/mahenderpal.files.wordpress.com\/2010\/11\/fulltimeout.jpg\" alt=\"\" width=\"500\" height=\"80\" \/><\/a><\/p>\n<div><span style=\"font-size:small;font-family:Calibri;\">\u00a0<\/span><\/div>\n<p><span style=\"font-size:small;font-family:Calibri;\"><\/p>\n<p class=\"MsoListParagraph\" style=\"text-indent:-.25in;margin:0 0 10pt .5in;\"><span style=\"font-size:10.5pt;line-height:115%;\"><span>7.<span style=\"font:7pt 'Times New Roman';\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span style=\"font-size:10.5pt;line-height:115%;\">Publish your workflow and create Email record and set due date. workflow will close email activity based on it\u2019s due date.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><\/span><\/p>\n<p class=\"MsoListParagraph\" style=\"text-indent:-.25in;margin:0 0 10pt .5in;\"><span style=\"font-size:small;font-family:Calibri;\">Cheer !!!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ufeff \u00a0 I got one requirement from my client where we need to complete Email activity based on it\u2019s Due date. so I have to check if current date is equal to email\u2019s due date then close email activity. So I created a workflow to implement this. Here are the steps to create workflow 1.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Create new workflow select Entity&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=392\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,20],"tags":[],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/392"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":0,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}