The Salesforce DX tool-set dramatically improves the development process for programmatic creation on the Salesforce platform but admins can use these same tools to streamline the declarative creation process as well.
These slides were part of the Dreamforce 2017 admin track presentation titled "Salesforce DX - an Admin's Perspective" given on November 7, 2017.
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Dreamforce 2017: Salesforce DX - an Admin's Perspective
1. Salesforce DX – an Admin’s Perspective
@SFDCAdvocate
Michael White, Sr. Salesforce Analyst
2. 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.
4. Salesforce DX
Core Principals
Facilitate collaborative creation
Focus on source driven development
Implement modular functionality
Create extensible tools
Build upon open standards
Enable continuous integration & delivery
Modernizing the development experience on Salesforce
5. Salesforce DX Key Features for Admins
Version Control
System
Scratch Orgs
Scriptable
Command Line
Tools
Portable Test
Data
17. Putting Salesforce DX to work for Admins
Creating and deploying customizations using Salesforce DX
18. Primary Use Case:
Replace paper-based
request system with
Salesforce functionality.
Solution:
Custom Object with several
fields, Visual Flow to collect
information, and a custom
button to launch the flow.
Our First Salesforce DX project
We created a blank SFDX Project
Created a new scratch org
Via Setup, added the custom objects and fields
Created permissions sets to grant access to object & fields
Pulled changes down into our local source
Pushed this to our GitHub repo
Used SFDX to deploy to our UAT sandbox and tested
After validation, deployed to Production using SFDX!
NO CHANGE SETS REQUIRED!
The Challenge and Our Approach
19. Capturing Declarative Changes Made in Scratch Org
Create New Scratch Org
Use declarative tools to customize the org – add custom field to custom object
Use CLI to pull those changes down from scratch org (sfdx force:source:pull –u ScratchOrg)
• Review list of changes identified in scratch org (custom field + permission set changes)
Commit to Github repo – https://github.com/MBWhite01/sfdx-admin-demo
• View changes is Repo
Push to new Scratch Org
20. Using SFDX to Extract Test Data from Scratch Org
Using Scratch Org from Prior Demo:
View list of accounts & contact records in the org
Use SFDX tools to export that via SOQL and store in JSON (force:data:tree:export)
Sfdx force:data:tree:export -u df-admin-demo
--query “Select Id, Name, Type, (Select Id, FirstName, LastName, Email from Contacts) from Account where
name = ‘sForce’”
-d data –p
View JSON data in project source directory /data directory
Commit update data to Github repo
Deploy to new Scratch org
22. Tips for Success with Salesforce DX
Break your customizations down into projects
• Look at ways to group your customizations by feature
• Don’t attempt to bring the entire org structure over
Shift from profile based security to permission sets
• Leverage flexibility of permission sets to grant access to projects
• Modularize your org security and assign as needed
Leverage CI / CD tools to push your changes into Sandboxes
• Existing sandboxes are still a great fit for UAT & validation testing
• A check-in of new features can be auto-deployed to a sandbox
Create test data and bundle with you project
23. Become a Salesforce DX Trailblazer
Four new badges for the Getting Started with Salesforce DX trail
Salesforce DX
Development Model
Git and Github
Basics
*New Partner Module!
Continuous
Integration using
Salesforce DX
App Development
with Salesforce DX
24. Additional Resources
Community and Developer Blog Articles
Salesforce DX
Group
Blog: Migrating Existing Projects to Salesforce DX
Sign-up for a Dev Hub Trial Org