{"id":224,"date":"2009-02-18T12:12:00","date_gmt":"2009-02-18T06:42:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=224"},"modified":"2009-02-18T12:12:00","modified_gmt":"2009-02-18T06:42:00","slug":"design-a-workflow-for-performing-repetitive-tasks","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2009\/02\/design-a-workflow-for-performing-repetitive-tasks\/","title":{"rendered":"Design a workflow for performing repetitive tasks"},"content":{"rendered":"<div align=\"justify\">Sometimes, there is a need to perform a particular task or action repetitively over a period of time. We were in a need to create a task activity after every 2 days against an account.<\/div>\n<div align=\"justify\"><\/div>\n<div align=\"justify\">This can be done by creating child workflow and call it from the parent workflow. The child workflow would peform the actual job and the parent will call this child recurrsively.<\/div>\n<div align=\"justify\"><\/div>\n<div align=\"justify\">Here are the steps to get this done:<\/div>\n<div align=\"justify\"><\/div>\n<ol>\n<li>\n<div align=\"justify\">Create a workflow for required entity (For eg: account) with following triggers<br \/>\n&#8211; On demand<br \/>\n&#8211; As a child workflow<br \/>\n&#8211; Record is created<\/div>\n<\/li>\n<li>\n<div align=\"justify\">Set the scope of the Workflow as appropriate (For eg: organization)<\/div>\n<\/li>\n<li>\n<div align=\"justify\">Now the structure of workflow will be as follows:<\/div>\n<\/li>\n<\/ol>\n<div align=\"justify\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/SZv9jIy1kpI\/AAAAAAAAABE\/SrDFa3zLtys\/s400\/child+wf.bmp\" alt=\"\" border=\"0\" \/><br \/>\nFirst is wait condition which says, wait for 2 days after the execution of this workflow. This condition is as shown below:<\/div>\n<p align=\"justify\"><img decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/_pMlyDuF-ngc\/SZwBPxeXydI\/AAAAAAAAABM\/dRJceOvaeOk\/s400\/condition.bmp\" alt=\"\" border=\"0\" \/>After this condition is fulfilled, a task is created and then again child workflow is started which is the same workflow created above (i.e. test recurring). So, the workflow runs recursively and creates a task after every 2 days.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, there is a need to perform a particular task or action repetitively over a period of time. We were in a need to create a task activity after every 2 days against an account. This can be done by creating child workflow and call it from the parent workflow. The child workflow would peform\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2009\/02\/design-a-workflow-for-performing-repetitive-tasks\/\">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":[275,1420],"class_list":["post-224","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm","category-workflows","tag-child-workflows","tag-recurring-activities"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/224","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=224"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}