intro to workflow formulas

19
Intro to Workow Formulas June 22, 2016

Upload: salesforce-admins

Post on 12-Apr-2017

1.485 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Intro to Workflow Formulas

Intro to Workflow Formulas June 22, 2016

Page 2: Intro to Workflow Formulas

Speakers

Mike Gerholdt Manager, Admin Evangelism @MikeGerholdt

Melissa VanDyke Solution Architect, GearsCRM @mvdsfdc

Page 3: Intro to Workflow Formulas

Forward-Looking Statements

 Statement under the Private Securities Litigation Reform Act of 1995:

 This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.

 The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.

 Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

Page 4: Intro to Workflow Formulas

Get Social with Us!

@salesforceadmns

#awesomeadmin

Salesforce Admins

Salesforce Admins

The video will be posted to YouTube & the webinar recap page

(same URL as registration).

This webinar is being recorded!

Page 5: Intro to Workflow Formulas

Join the Admin Webinar Group for Q&A!

 Don’t wait until the end to ask your

question! •  We have team members on hand to answer

questions in the webinar group.

• Stick around for live Q&A at the end!

•  Speakers will tackle more questions at the end, time-allowing

bit.ly/AdminWebinarGroup

Page 6: Intro to Workflow Formulas

Agenda

•  What is Process Automation?

•  Writing a Formula

•  Demo

•  Resources

•  Q&A

Page 7: Intro to Workflow Formulas

What is Process Automation?

Page 8: Intro to Workflow Formulas

 If it’s raining, then open an

umbrella.

Page 9: Intro to Workflow Formulas

What is Process Automation?

 Automation can be broken into two main components.

•  Criteria: the “if” part of the “if/then” statement. In other words, what must be true of the record for the workflow rule to execute the associated actions.

•  Actions: the “then” part of the “if/then” statement. In other words, what to do when the record meets the criteria..

Criteria

If it’s raining,

Action then open an umbrella

Page 10: Intro to Workflow Formulas

Components of Process Automation

The main components of a process are: •  Object

•  Evaluation Criteria •  Actions

•  Immediate Actions

•  Time-Dependent Actions

Page 11: Intro to Workflow Formulas

Writing a Formula

Page 12: Intro to Workflow Formulas

Best Practices for Getting Started with Formulas

•  Write it out as a sentence before you even try to write the formula (literally, in words!)

•  AND() OR() vs && || (figure out which one you prefer!)

•  Remember TEXT and ISCHANGED (yes, you can do that!)

•  Formulas can fire an action or the formula can live within the action!

Page 13: Intro to Workflow Formulas

Object Opportunity

Evaluation Criteria

If the opportunity’s stage is changed to a new value at anytime AND either the opportunity’s stage is equal to Closed Lost OR Next Step contains the word “Lost”

Actions Then create a new task for Project Coordinator to follow-up

Option 1 Option 2

AND &&  Update a Custom Date when an Opportunity is new or the stage changes

ISCHANGED(StageName)&&(ISPICKVAL(StageName,"ClosedLost")||CONTAINS("Lost",NextStep))

AND(ISCHANGED(StageName),OR(ISPICKVAL(StageName,"ClosedLost"),CONTAINS("Lost",NextStep)))

Page 14: Intro to Workflow Formulas

Object Opportunity

Evaluation Criteria

If the opportunity record was just created OR anytime the Opportunity’s Status field changes to a new value

Actions Then update the custom date field with today’s date

Option 1- Date Field Option 2- Date Field

Option 1 Option 2

OR ||  Update a Custom Date when an Opportunity is new OR the stage changes

OR(ISNEW(),ISCHANGED(StageName)) ISNEW()||ISCHANGED(StageName)

today() today()

Page 15: Intro to Workflow Formulas

Demo

Page 16: Intro to Workflow Formulas

Salesforce Tools to Automate Processes

Process Builder •  Multiple if/then

statements •  Starts when record

is changed

Visual Workflow •  Can start when

user clicks button, accesses custom tab, starts process, etc.

Workflow •  A single if/then

statement •  Starts when a

record is changed

Approvals •  A single if/then

statement •  Starts when a user

clicks, process or flow starts, apex is called

Page 17: Intro to Workflow Formulas

Resources

MVDSFDC Blog Post

http://melissavandyke.com/the-bottom-line-on-

formulas/

Trailhead

Formulas & Validation Badge

Advanced Formulas

Page 18: Intro to Workflow Formulas

Join the Admin Webinar

Group for Q&A!

bit.ly/AdminWebinarGroup

Page 19: Intro to Workflow Formulas

thank y u