cloud flow designer: salesforce.com

29
Salesforce.com Cloud Flow Designer Introduction Michelle Emanuel [email protected] 05/24/2022 All the information within this document remain the property of Coquisoft, Inc 1

Upload: michelle-emanuel-pmp-mba

Post on 10-Jun-2015

899 views

Category:

Technology


0 download

DESCRIPTION

Introduction to using Salesforce.com Cloud flow Designer

TRANSCRIPT

Page 1: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

1

Salesforce.comCloud Flow Designer

IntroductionMichelle Emanuel

[email protected]

Page 2: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

2

Introduction to Salesforce.com Cloud Flow Designer

Provide an overview to developing a simple wizard

Show a more complex wizard developed using Cloud Flow Designer

Presentation Purpose

Page 3: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

3

Purpose of the flows is to guide users through screens for collecting and updating data – in my case I used them to guide volunteers to enter and schedule trips for volunteers

Elements are the building blocks of flows Each element represents an action Actions are connected into flows and then

variables, formulas are used to manipulate the data throughout and if you really want to manipulate the data you can plug-in an Apex class

Visual Workflow has 3 aspects:◦ Flow design◦ Flow Management◦ Flow Run time

Cloud Flow Designer

Page 4: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

4

Loading data from the Donation system requires multiple steps. To reduce the manual steps an intermediate temporary object was created and a trigger was attached to the object.

The reason was that the Account ID is needed to load the opportunity for the NPSP implementation. The trigger cannot be attached to the opportunity object because there are 6 triggers associated with that object and we don’t have the code for the 5 managed packages. In addition I really did not want to change these managed packages.

This left me with the solution of creating an intermediate object for the data being loaded in opportunity (donation) where I could hold the data until I populated it with the Account ID from the recently loaded Contacts.

The downside is that this intermediate object would have data in it that would not be monitored or cleaned up since I could not delete it with the trigger I just added on the intermediate object since the commit was not complete.

The solution was a single wizard once the loading was complete the person doing the loading would select a single button that would do the final cleanup.

Problem Statement

Page 5: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

5

Define your problem – Understand your data

design – Entity Relationship Diagram.

Develop a high level design.

Introduction

Page 6: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

6

Start Cloud Flow EditorSelect setup

To start with you will select a Flows

Page 7: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

7

Get Started

Start with a new flow

Page 8: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

8

VideoThe first time you start Cloud Flow

you will get the opportunity to watch videos to get started. Watch the Video it will go through all the

icons on the screen .

Page 9: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

9

Blank Canvas

Once you clear the video you will start with a blank canvas.

Page 10: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

10

Sketch out your designSketch out your design using the Step Draft tool from the palette.

Page 11: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

11

First you will identify if you will be looking up a Standard or

Custom Object

Then identify Standard or Custom field in the Object

Then select the operator

Then enter the value you can create a new value or as in this

case use a system valueIf you want to add additional filters then add a row.

Record Look up

Page 12: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

12

Note Error if you go to save.

Unless you are going to save the fields to variables you will get this select the trash can to

allow you to save.

Save flow

Page 13: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

13

Save flowYou will get the warnings when you save because of the steps still in the flow and because I have not identified a starting

point.

Page 14: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

14

This is how you select the starting element.

Identify the start of the flow

Page 15: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

15

Make a DecisionThe decision logic from the

Palette acts much like an If then else conditional statement.

Provide a name and it will appear when you make the connection

What is your conditional statement? You can add multiple conditions and either “and” them

or “or” them

The Default Outcome would be the else outcome

Page 16: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

16

Create a loopPlacing this decision and the

lookup created a loop in the logic the loop is a “do while” there is still a record to look up in the

object delete it

The names from the decision of the statements

The else condition

Page 17: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

17

Delete a RecordIdentify the Object

Define the criteria of the records to delete add as many rows as needed to specify the select for the

records.

Page 18: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

18

Display Content to the Screen This is the component that you will

use to interact with your user, to request input and to provide

information. In this case I displayed the output that the wizard was

complete. The field output can be formatted using HTML markup.

Page 19: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

19

Activate the FlowThe flow will need to be activated and once activated its status will become Active. Further modifications will be saved to a new version of the flow.

Page 20: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

20

The next steps is to make the wizard available

Select the app or apps for the wizard Make a tab using visualforce tab and assign

to an app.

Make it available

Page 21: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

21

The following slides introduce additional choices for the selections available for components

You may not use all that is available but there are many choices.

Other Palette choices

Page 22: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

22

Complex flowOne flow can invoke other

sub-FlowsAvailable sub-flows will appear on the palette

Page 23: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

23

Invoking Sub-FlowsWhen invoking a sub-flow you can assign elements or values to pass but they

have to be defined appropriately

Page 24: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

24

Invoking Sub-FlowsWhen invoking a sub-flow you can assign elements or values to pass but they

have to be defined appropriately not as local

Page 25: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

25

Record Create As part of CRUD this is the “C” and to create a record. Begin identifying the object and then set the fields and

the values

Page 26: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

26

As part of CRUD this is the “U” and to update a record. Begin identifying the object select the record to update. Once the record is identified

then update the fields specified.

Record Update

Page 27: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

27

Not everything can be done through Cloud flow and sometimes you need an APEX class.

You can develop an APEX class and an APEX test class and integrate it into your cloud flow for even more flexibility.

From Setup, click Create | Workflow & Approvals | Flows and open a new or existing flow.

From the Palette, drag an Apex Plug-in element onto the canvas. The class name and plug-in description are taken from the plug-in code.

Enter a name for your new plug-in element. If you haven’t already added a description, click Add

Description to do so. On the Inputs tab, assign values to the Apex parameters.

Required parameters are automatically listed as targets.

APEX Classes

Page 28: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

28

global class CleanTripName implements Process.Plugin{    global Process.PluginResult invoke(Process.PluginRequest request)    {                }       global Process.PluginDescribeResult describe()    {               };                 }

APEX Plug-in Classes

Page 29: Cloud flow designer: Salesforce.com

04/13/2023All the information within this document remain the property of Coquisoft, Inc

29

Adding APEX Classes

In addition to adding the APEX classes to the palette you can pass arguments to the class and get return values from the APEX class.