{"id":227,"date":"2013-12-21T15:50:07","date_gmt":"2013-12-21T10:20:07","guid":{"rendered":"https:\/\/www.dhruvsoft.com\/blog\/?p=227"},"modified":"2024-07-26T09:47:30","modified_gmt":"2024-07-26T09:47:30","slug":"salesforce-com-visual-workflow-introduction-force-com-flow","status":"publish","type":"post","link":"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/","title":{"rendered":"Salesforce.com Visual Workflow Introduction (Force.com Flow)"},"content":{"rendered":"<p>Salesforce.com Visual Workflow allows customers to build \u00e2\u20ac\u02dcflows\u00e2\u20ac&#x2122;, which guide users through screens for collecting and \/ or and updating data. They can also be used as an script in a Call Center Scenario. This article is an introduction or primer to Force.com Flow in a Q&amp;A format.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 ez-toc-wrap-left-text counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/#What_is_a_Flow\" >What is a Flow?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/#What_is_the_difference_between_Forcecom_Flow_or_Visual_Workflow_and_Workflow\" >What is the difference between Force.com Flow (or Visual Workflow) and Workflow?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/#How_we_create_and_run_Visual_Workflow_Flow\" >How we create and run Visual Workflow (Flow)?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/#What_are_different_elements_in_a_flow\" >What are different elements in a flow?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/#What_are_the_steps_to_define_flows\" >What are the steps to define flows?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/#What_are_flow_versions\" >What are flow versions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/#What_permissions_are_required_to_run_and_create_flows\" >What permissions are required to run and create flows?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.dhruvsoft.com\/blog\/salesforce-com-visual-workflow-introduction-force-com-flow\/#What_are_the_limits_of_flow\" >What are the limits of flow?<\/a><\/li><\/ul><\/nav><\/div>\n<h4><span class=\"ez-toc-section\" id=\"What_is_a_Flow\"><\/span><strong>What is a Flow?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>A Flow is a wizard or a series of screens that complete a business process. A business process covered in flow could be for example &#8211; completing a customer survey, filling out form for an insurance quote or a telephone call script from a sales or service agent.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"What_is_the_difference_between_Forcecom_Flow_or_Visual_Workflow_and_Workflow\"><\/span>What is the difference between Force.com Flow (or Visual Workflow) and Workflow?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Although workflow and visual workflow (Force.com flow) have similar names they are completely different features. The common thread among them is that they both help in automating the business processes. Here are some key differences:<\/p>\n<ul>\n<li>Flows are apps which are triggered by user instead of an event which is the case with workflow.<\/li>\n<li>Visual Workflow offers screens for displaying and collecting information from the user running the flow. However workflow execute rules and actions behind the scenes.<\/li>\n<li>Workflow rules and actions are associated with a specific object (and can cross objects only to update fields on a related master record), flows can look up, create, update, and delete records for multiple objects.<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"How_we_create_and_run_Visual_Workflow_Flow\"><\/span>How we create and run Visual Workflow (Flow)?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>We can create and run Visual Workflow as follows:<\/p>\n<ol>\n<li>Flow design \/ creation: We use Cloud Flow Designer that is a drag-and-drop user interface that lets you diagram flow structure and configure how it runs, without writing any code. To open the Flow Designer you can go to Setup &gt;&gt; Create &gt;&gt; Workflow&amp; Approvals &gt;&gt; Flows.<\/li>\n<li>Flow management: We manage flows in Salesforce from setup area. We can edit its properties, activate, deactivate, delete, or run it from here.<\/li>\n<li>Runtime: Flow users can then run the active flow from a custom button, tab, link, or directly from the flow URL<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"What_are_different_elements_in_a_flow\"><\/span>What are different elements in a flow?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Elements are the building blocks of flows &#8211; we have following elements<\/p>\n<ul>\n<li>Step<\/li>\n<li>Screen<\/li>\n<li>Decision<\/li>\n<li>Assignment<\/li>\n<li>Record Create<\/li>\n<li>Record Update<\/li>\n<li>Record Lookup<\/li>\n<li>Record Delete<\/li>\n<li>Sub flows<\/li>\n<li>Apex Plug-In<\/li>\n<li>Connector<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"What_are_the_steps_to_define_flows\"><\/span>What are the steps to define flows?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Building a flow in the Cloud Flow Designer follows 4 steps<\/p>\n<ol>\n<li>Defining Resources<\/li>\n<li>Adding Elements<\/li>\n<li>Connecting Elements<\/li>\n<li>Setting Start Element<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"What_are_flow_versions\"><\/span>What are flow versions?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>One can create flows with different versions, but only one version of the flow can be active at a time.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"What_permissions_are_required_to_run_and_create_flows\"><\/span>What permissions are required to run and create flows?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Users with \u00e2\u20ac\u0153Run flows\u00e2\u20ac\u009d permission can run flows<\/li>\n<li>Users with \u00e2\u20ac\u0153Manage Force.com Flow\u00e2\u20ac\u009d permission can Open, Create, Delete, Activate, Deactivate or Delete flows<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"What_are_the_limits_of_flow\"><\/span>What are the limits of flow?<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Flow has some limits and they are (limits may change over period so refer salesforce documentation for latest limits)<\/p>\n<ul>\n<li>Maximum number of versions per flow is 50<\/li>\n<li>Maximum number of executed elements at runtime is 2000<\/li>\n<li>Maximum number of active flows per organization is 500<\/li>\n<li>Maximum number of flows per organization is 1000<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Salesforce.com Visual Workflow allows customers to build \u00e2\u20ac\u02dcflows\u00e2\u20ac&#x2122;, which guide users through screens for collecting and \/ or and updating data. They can also be used as an script in a Call Center Scenario. This article is an introduction or primer to Force.com Flow in a Q&amp;A format.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-force-com","entry"],"_links":{"self":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":0,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}