preparing for lightning: replacing url hacks with actions

32
Replacing URL hacks with Actions @SFDCAdvocate Michael White Sr. Salesforce Analyst Preparing for Lightning

Upload: mike-white

Post on 08-Jan-2017

209 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Preparing for Lightning: Replacing URL Hacks with Actions

Replacing URL hacks with Actions

@SFDCAdvocate

Michael White Sr. Salesforce Analyst

Preparing for Lightning

Page 2: Preparing for Lightning: Replacing URL Hacks with Actions

Michael WhiteSr. Salesforce Analyst

Varian Medical Systems

172 Trailhead Badges4 Superbadges

Page 3: Preparing for Lightning: Replacing URL Hacks with Actions

Forward-Looking StatementsStatement 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: Preparing for Lightning: Replacing URL Hacks with Actions

The current state of URL hacks

Page 5: Preparing for Lightning: Replacing URL Hacks with Actions

What is a URL hack?

The phrase URL hack describes a method for crafting a special hyperlink or script and exposing it via button or formula field. These specially crafted hyperlinks often used to provide additional functionality and automation to end-users. Examples:• Setting record types for newly created records.• Pre-populating values on child records created from parent.• Sending emails with a specific template IDs.

Page 6: Preparing for Lightning: Replacing URL Hacks with Actions

Example from the Success Community

Admin needed to streamline creation of renewal opportunities from Account detail page.

Organization uses multiple opportunity record types.

New records must be created with a specific record type and pre-set values for other fields.

Prompting / end-user selection of record type is confusing and error prone.

Page 7: Preparing for Lightning: Replacing URL Hacks with Actions

Create custom detail page button

Look at HTML code of Opportunity page to identify key field IDs

Add field IDs and values to button URL

Expose to users via Page Layout

How it might be solved today URL “Hack” implemented as a custom detail page button

Page 8: Preparing for Lightning: Replacing URL Hacks with Actions

The drawbacks when using URL hacks.

Not officially supported by Salesforce. Difficult to modify and/or maintain. No native admin UI -- limited to editing a formula

or URL string. Do not work in Salesforce1 or Lightning

Experience!

Page 9: Preparing for Lightning: Replacing URL Hacks with Actions

Looking down the TrailFuture proofing your Admin enhancements

Page 10: Preparing for Lightning: Replacing URL Hacks with Actions

Released Winter ’16Continually enhanced and improved since initial introduction.Feature parity between LEX and Classic are getting closer with each release.

Welcome to Lightning!

Page 11: Preparing for Lightning: Replacing URL Hacks with Actions

Start building compatible solutions now! Lightning Experience IS the Future

As Admins, we need to build Lightning friendly solutions today.Learn the new tools and technologies available to Admins. Prepare our business users to make the switch.

This WayTo TheFuture

Page 12: Preparing for Lightning: Replacing URL Hacks with Actions

What are Actions in Salesforce?

Actions are Admin defined productivity enhancers!

They allow user to streamline the creation of related records, can be configured to set default values on new records and are available for use in Classic, Lightning and Salesforce1.

Chatter must be enabled in order to use Actions in Classic. Two primary types of actions:Global ActionsObject Specific

Page 13: Preparing for Lightning: Replacing URL Hacks with Actions

Global actions are available for use from any feed enabled page.

Add common actions to Global Layout to make them accessible on all Feed enabled pages.

In Classic, this includes the Home tab, Chatter tab, object detail records.

Global Actions

Page 14: Preparing for Lightning: Replacing URL Hacks with Actions

Create records that are automatically associated with other records.

Commonly used to create a contact or opportunity from an account.

Available in Classic via the Chatter Publisher.

Object Specific Actions

Page 15: Preparing for Lightning: Replacing URL Hacks with Actions

Making Actions Available to Users Making Global Actions Visible:

Setup > User Interface > Global Actions

Define New Action Add to Global

Publisher Layout Assign Layout to

User

Page 16: Preparing for Lightning: Replacing URL Hacks with Actions

Setup > Object Manager > Object

Buttons, Links, & Actions

New Action Add to Page Layout Assign Layout to

User

Making Actions Available to Users Making Object Specific Actions Visible:

Page 17: Preparing for Lightning: Replacing URL Hacks with Actions

Demo Actions in Classic, Lightning & SF1

Page 18: Preparing for Lightning: Replacing URL Hacks with Actions

Example from the Success Community

Admin need to streamline creation of renewal opportunities. Business users want the ability to create these from the Account detail page. Organization uses multiple opportunity record types. New records must be created with a specific record type and preset other field

values. Prompting / end-user selection of record type is confusing and error prone.

Page 19: Preparing for Lightning: Replacing URL Hacks with Actions

Demo – Create the Action

In Classic – enter setup and navigate to Customize > Accounts > Buttons, Links and Actions

New Action Set Action Values – type, target

object, record type and define custom label.

Save.

Add an Action that creates an Opportunity with a specific record type.

Page 20: Preparing for Lightning: Replacing URL Hacks with Actions

Demo - Extending the Quick Action

Extend the previous example to set additional values on the new Opportunity.

Supply default values for fields on the newly created record.

Enter Setup > Object Manager > Account > Buttons, Links and Actions

Setting the Record Type was great but what about….

Page 21: Preparing for Lightning: Replacing URL Hacks with Actions

In Classic – enter setup and navigate to Customize > Accounts > Page Layouts

Edit Page Layout Scroll to ‘Quick

Actions’, locate the ‘Create Renewal’ action and drag to ‘Quick Actions in the Salesforce Classsic Publisher’ section of the page layout.

Save Changes and Open Account Detail Page

Demo – Add Action to Page Layout in Classic

Page 22: Preparing for Lightning: Replacing URL Hacks with Actions

Demo - Actions in Use

Open Account detail page Expand the Feed Create Renewal should be listed in

the publisher.

Classic

Page 23: Preparing for Lightning: Replacing URL Hacks with Actions

Open Account detail page

Look for ‘Create Renewal’ in Action bar.

Demo - Actions in Use Lightning

Page 24: Preparing for Lightning: Replacing URL Hacks with Actions

The Create Renewal pop-up will appear and display the fields saved in the Action Page Layout.

Demo - Actions in Use Lightning

Page 25: Preparing for Lightning: Replacing URL Hacks with Actions

Demo - Actions in Use Lightning

Page 26: Preparing for Lightning: Replacing URL Hacks with Actions

Demo - Accessing Actions in Salesforce1

Action in Salesforce1 are listed along the bottom of the App!

Items added to page layout are automatically available here if:

Added as first item in Classic Added to Lightning and Salesforce1 Actions

Page 27: Preparing for Lightning: Replacing URL Hacks with Actions

Demo - Accessing Actions in Salesforce1

The previously created action is now accessible on the Account detail page in SF1!

Page 28: Preparing for Lightning: Replacing URL Hacks with Actions

Demo - Accessing Actions in Salesforce1

Salesforce1 Users Now Have Access to the Same Action!

Admins have a single place to go to manage and maintain this going forward.

Page 29: Preparing for Lightning: Replacing URL Hacks with Actions

Additional ResourcesTrailhead Modules and Reference Guides

Page 31: Preparing for Lightning: Replacing URL Hacks with Actions

Q&A

Page 32: Preparing for Lightning: Replacing URL Hacks with Actions

Thank Y u