+ Start a Discussion
Anushka BansalAnushka Bansal 

When to use visual workflow and when process builder ?

Which tool would you use for the following use case?
When an opportunity closes, automatically close all activities related to that opportunity and create a renewal opportunity.
A Process Builder
B Visual Workflow
C Workflow
D Approvals
Amit Chaudhary 8Amit Chaudhary 8
A. Process Builder.

Please check below post for Visual workflow
1) https://trailhead.salesforce.com//en/business_process_automation/flow
2) https://developer.salesforce.com/page/Visual_Workflow

Visual process tools and wizards make it second nature to add complex business logic to your apps, and to make changes as your business evolves. Visual Workflow, built using Force.com's Cloud Flow Designer, lets you visually string together one or more forms, business rules, and calls to backend APIs to implement a complete business process without writing code.

Process Builder
1) https://trailhead.salesforce.com//business_process_automation/process_builder

The Process Builder tool allows you to easily automate business processes using a convenient graphical representation of your process as you build it. Automated processes in the Process Builder consist of:
  • Criteria that determine when to execute action groups
  • Immediate and scheduled actions to execute when those criteria are met

Let us know if this will help you
 
AdminBooster.comAdminBooster.com
Use A - Process Builder as it can mass update child records (activities in your use case)
B- Visual Workflow is wrong as it interacts with the user, and we need to run the process on a data event
C- Workflow is wrong as you cannot update child records
D- Approval process has nothing to do with your use case