SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
Metadata Magic:
Maintain Code,
Without the Code!
Technical Lead, Accenture
Chris Henson
Forward Looking Statement
• Statement under the Private Securities Litigation Reform Act of 1995:
• This presentation contains forward-looking statements about the company’s financial and operating results, which may include expected GAAP and non-GAAP financial and other operating and non-operating
results, including revenue, net income, diluted earnings per share, operating cash flow growth, operating margin improvement, expected revenue growth, expected current remaining performance obligation
growth, expected tax rates, the one-time accounting non-cash charge that was incurred in connection with the Salesforce.org combination; stock-based compensation expenses, amortization of purchased
intangibles, shares outstanding, market growth and sustainability goals. The achievement or success of the matters covered by such forward-looking statements involves risks, uncertainties and assumptions. If
any such risks or uncertainties materialize or if any of the assumptions prove incorrect, the company’s results could differ materially from the results expressed or implied by the forward-looking statements we
make.
• The risks and uncertainties referred to above include -- but are not limited to -- risks associated with the effect of general economic and market conditions; the impact of geopolitical events; the impact of foreign
currency exchange rate and interest rate fluctuations on our results; our business strategy and our plan to build our business, including our strategy to be the leading provider of enterprise cloud computing
applications and platforms; the pace of change and innovation in enterprise cloud computing services; the seasonal nature of our sales cycles; the competitive nature of the market in which we participate; our
international expansion strategy; the demands on our personnel and infrastructure resulting from significant growth in our customer base and operations, including as a result of acquisitions; our service
performance and security, including the resources and costs required to avoid unanticipated downtime and prevent, detect and remediate potential security breaches; the expenses associated with new data
centers and third-party infrastructure providers; additional data center capacity; real estate and office facilities space; our operating results and cash flows; new services and product features, including any
efforts to expand our services beyond the CRM market; our strategy of acquiring or making investments in complementary businesses, joint ventures, services, technologies and intellectual property rights; the
performance and fair value of our investments in complementary businesses through our strategic investment portfolio; our ability to realize the benefits from strategic partnerships, joint ventures and
investments; the impact of future gains or losses from our strategic investment portfolio, including gains or losses from overall market conditions that may affect the publicly traded companies within the
company's strategic investment portfolio; our ability to execute our business plans; our ability to successfully integrate acquired businesses and technologies, including delays related to the integration of
Tableau due to regulatory review by the United Kingdom Competition and Markets Authority; our ability to continue to grow unearned revenue and remaining performance obligation; our ability to protect our
intellectual property rights; our ability to develop our brands; our reliance on third-party hardware, software and platform providers; our dependency on the development and maintenance of the infrastructure
of the Internet; the effect of evolving domestic and foreign government regulations, including those related to the provision of services on the Internet, those related to accessing the Internet, and those
addressing data privacy, cross-border data transfers and import and export controls; the valuation of our deferred tax assets and the release of related valuation allowances; the potential availability of
additional tax assets in the future; the impact of new accounting pronouncements and tax laws; uncertainties affecting our ability to estimate our tax rate; the impact of expensing stock options and other equity
awards; the sufficiency of our capital resources; factors related to our outstanding debt, revolving credit facility, term loan and loan associated with 50 Fremont; compliance with our debt covenants and lease
obligations; current and potential litigation involving us; and the impact of climate change.
• Further information on these and other factors that could affect the company’s financial results is included in the reports on Forms 10-K, 10-Q and 8-K and in other filings it makes with the Securities and
Exchange Commission from time to time. These documents are available on the SEC Filings section of the Investor Information section of the company’s website at www.salesforce.com/investor.
• Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements, except as required by law.
https://help.salesforce.com/articleView?id=custommetadatatypes_overview.htm
&type=5
“Custom metadata is customizable, deployable,
packageable, and upgradeable application metadata. First,
you create a custom metadata type, which defines the
form of the application metadata. Then you build reusable
functionality that determines the behavior based on
metadata of that type.”
So What is Custom Metadata?
So what does that mean?
• These are configurable metadata that can work kind of like
object/records
• Maintain aspects of your org that previously required developer
involvement
• Can package these and promote using change sets
• Additional customizable declarative tools to solve complex and
challenging issues
• Better ability to drive scalability and maintainability
• Think Custom Labels, but much, much better
The trick….
• BUT…..As with all magic, there’s a trick: In most cases when
using these, you will have to work with a developer initially to
set this up properly, and ensure that their code will call the
custom metadata you want to set up so that you can maintain it
in the future.
• Its very important that these are set up correctly from the
beginning, because troubleshooting these can be difficult within
the code, and if not planned properly can produce some
unexpected results.
Company_Code_Mapping__mdt[] companyCodes =
[SELECT CompanyCode__c, Jurisdiction__c, CreatedBy, Label
FROM Company_Code_Mapping__mdt
WHERE Jurisdiction = ‘MA’];
for (Company_Code_Mapping__mdt code : companyCodes) {
System.debug(code.Label + ': ' +
code.CompanyCode__c + ‘, Created By: ‘ +
code.CreatedBy + ' for: '
code.Jurisdiction__c);
}
Ideas for Using Custom Metadata
Integration and Data Mapping/
Transformation
• One of the biggest uses of custom metadata types
• Create data mapping that will also add some transformational
capability to your integration
• Error handling code transformation
• Legacy data integration that requires code/decode
• These can be used in custom code and packaged, then if
(when) the data mapping changes, this can be completed in
most cases by updating the custom metadata
• External data mapping for dummies!
• “NYC” vs “New York City” type scenarios
• Turn 12345 into “Please check the spelling of the person you are
searching for”
• Very useful in situations where a developer may have to hard code
information so that it is transformed properly
Support Data Transformation
Control Trigger Actions
• Can be used as part of a data validation
• If the value isn’t part of the custom metadata list, then it may not be
valid
• Add a custom metadata call in the trigger, then use the type to
declaratively update values
• Add a City and State to a contact based on the company code or region
their associated with
• For complex queue routing
requirements
• Ideal for moderately shifting routing
issues that require regular updating
• Route based on user actions, case
status, or type of case order
• Can also be used for method of case
closure logic
Dynamic Case Queue Routing
Other Useful Ideas
• Business rules—Combine configuration records with custom functionality. Use
custom metadata types along with some Apex code to route payments to the correct
endpoint
• Master data—Let’s say that your org uses a standard accounting app. Create a custom
metadata type that defines custom charges, like duties and VAT rates. If you include
this type as part of an extension package, subscriber orgs can reference the master
data
• Whitelists—Manage lists, such as approved donors and pre-approved vendors
• Secrets—Store information, like API keys, in your protected custom metadata types
within a package
• Dynamic page creation
Summary
• Custom metadata types are a powerful way to gain additional
functionality in your org declaratively
• If set up properly, custom metadata can save you headaches
down the road with maintainability and scalability
• Learn more about custom metadata types and more ideas for
their use at help.salesforce.com and typing custom metadata
type in the search bar
• There are multiple ways to use this functionality. The
possibilities are endless!
Questions?
christopher.m.henson@accenture.com
linkedin.com/in/chrishenson1/

Weitere ähnliche Inhalte

Was ist angesagt?

Best Practices for Sales Compensation Management
Best Practices for Sales Compensation ManagementBest Practices for Sales Compensation Management
Best Practices for Sales Compensation Management
dreamforce2006
 
Information Peer Pressure
Information Peer PressureInformation Peer Pressure
Information Peer Pressure
dreamforce2006
 
Competitive Intelligence Best Practices
Competitive Intelligence Best PracticesCompetitive Intelligence Best Practices
Competitive Intelligence Best Practices
dreamforce2006
 
Introducing Analytics Mash-ups
Introducing Analytics Mash-upsIntroducing Analytics Mash-ups
Introducing Analytics Mash-ups
dreamforce2006
 
Integrating Salesforce and QuickBooks
Integrating Salesforce and QuickBooksIntegrating Salesforce and QuickBooks
Integrating Salesforce and QuickBooks
dreamforce2006
 

Was ist angesagt? (20)

Essential Habits for Salesforce Admins: Data Management
Essential Habits for Salesforce Admins: Data ManagementEssential Habits for Salesforce Admins: Data Management
Essential Habits for Salesforce Admins: Data Management
 
WT19: Platform Events Are for Admins Too!
WT19: Platform Events Are for Admins Too! WT19: Platform Events Are for Admins Too!
WT19: Platform Events Are for Admins Too!
 
Lightning Flow: The Best Feature You're Not Using
Lightning Flow: The Best Feature You're Not UsingLightning Flow: The Best Feature You're Not Using
Lightning Flow: The Best Feature You're Not Using
 
Admin Best Practices: Introducing Einstein Recommendation Builder
Admin Best Practices: Introducing Einstein Recommendation BuilderAdmin Best Practices: Introducing Einstein Recommendation Builder
Admin Best Practices: Introducing Einstein Recommendation Builder
 
Learn to Leverage the Power of SOQL
Learn to Leverage the Power of SOQLLearn to Leverage the Power of SOQL
Learn to Leverage the Power of SOQL
 
Admin Best Practices: Reports & Dashboards
Admin Best Practices: Reports & DashboardsAdmin Best Practices: Reports & Dashboards
Admin Best Practices: Reports & Dashboards
 
Best Practices for Sales Compensation Management
Best Practices for Sales Compensation ManagementBest Practices for Sales Compensation Management
Best Practices for Sales Compensation Management
 
Managing Exceptions with Salesforce Reporting
Managing Exceptions with Salesforce ReportingManaging Exceptions with Salesforce Reporting
Managing Exceptions with Salesforce Reporting
 
WT19: An Amazing Lightning Transition in Review
WT19: An Amazing Lightning Transition in ReviewWT19: An Amazing Lightning Transition in Review
WT19: An Amazing Lightning Transition in Review
 
Advanced Reporting Tips and Tricks for New Admins
Advanced Reporting Tips and Tricks for New AdminsAdvanced Reporting Tips and Tricks for New Admins
Advanced Reporting Tips and Tricks for New Admins
 
Become a Superstar Admin with Custom Metadata Types
Become a Superstar Admin with Custom Metadata TypesBecome a Superstar Admin with Custom Metadata Types
Become a Superstar Admin with Custom Metadata Types
 
Information Peer Pressure
Information Peer PressureInformation Peer Pressure
Information Peer Pressure
 
Essential Habits for Salesforce Admins: Security
Essential Habits for Salesforce Admins: SecurityEssential Habits for Salesforce Admins: Security
Essential Habits for Salesforce Admins: Security
 
Competitive Intelligence Best Practices
Competitive Intelligence Best PracticesCompetitive Intelligence Best Practices
Competitive Intelligence Best Practices
 
Top 5 Tips for Solo Admins
Top 5 Tips for Solo AdminsTop 5 Tips for Solo Admins
Top 5 Tips for Solo Admins
 
Introducing Analytics Mash-ups
Introducing Analytics Mash-upsIntroducing Analytics Mash-ups
Introducing Analytics Mash-ups
 
Integrating Salesforce and QuickBooks
Integrating Salesforce and QuickBooksIntegrating Salesforce and QuickBooks
Integrating Salesforce and QuickBooks
 
Admin Best Practices: 3 Steps to Seamless Deployments
Admin Best Practices: 3 Steps to Seamless DeploymentsAdmin Best Practices: 3 Steps to Seamless Deployments
Admin Best Practices: 3 Steps to Seamless Deployments
 
Tips and tricks for reports and dashboards
Tips and tricks for reports and dashboardsTips and tricks for reports and dashboards
Tips and tricks for reports and dashboards
 
Essential Habits for Salesforce Admins: Actionable Analytics
Essential Habits for Salesforce Admins: Actionable AnalyticsEssential Habits for Salesforce Admins: Actionable Analytics
Essential Habits for Salesforce Admins: Actionable Analytics
 

Ähnlich wie WT19: Metadata Magic: Maintain Code, Without the Code!

Save Millions of Clicks! Easily migrate complex schemas from SQL to Salesforce.
Save Millions of Clicks!  Easily migrate complex schemas from SQL to Salesforce.Save Millions of Clicks!  Easily migrate complex schemas from SQL to Salesforce.
Save Millions of Clicks! Easily migrate complex schemas from SQL to Salesforce.
Daniel Peter
 

Ähnlich wie WT19: Metadata Magic: Maintain Code, Without the Code! (20)

Winter 21 Developer Highlights for Salesforce
Winter 21 Developer Highlights for SalesforceWinter 21 Developer Highlights for Salesforce
Winter 21 Developer Highlights for Salesforce
 
Manage and Release Changes Easily and Collaboratively with DevOps Center - Sa...
Manage and Release Changes Easily and Collaboratively with DevOps Center - Sa...Manage and Release Changes Easily and Collaboratively with DevOps Center - Sa...
Manage and Release Changes Easily and Collaboratively with DevOps Center - Sa...
 
Stamford developer group - 8 easy steps to master in lightning web components
Stamford developer group - 8 easy steps to master in lightning web componentsStamford developer group - 8 easy steps to master in lightning web components
Stamford developer group - 8 easy steps to master in lightning web components
 
Salesforce Stamford developer group - power of flows
Salesforce Stamford developer group - power of flowsSalesforce Stamford developer group - power of flows
Salesforce Stamford developer group - power of flows
 
How Imprivata Combines External Data Sources for Business Insights
How Imprivata Combines External Data Sources for Business InsightsHow Imprivata Combines External Data Sources for Business Insights
How Imprivata Combines External Data Sources for Business Insights
 
Stamford developer group Experience Cloud
Stamford developer group   Experience CloudStamford developer group   Experience Cloud
Stamford developer group Experience Cloud
 
2019 Dreamforce Embedded Analytics
2019 Dreamforce   Embedded Analytics2019 Dreamforce   Embedded Analytics
2019 Dreamforce Embedded Analytics
 
Demystify Metadata Relationships with the Dependency API
Demystify Metadata Relationships with the Dependency APIDemystify Metadata Relationships with the Dependency API
Demystify Metadata Relationships with the Dependency API
 
WT19: 5 Game-Changing Flow Solutions to Level Up Your Org
WT19: 5 Game-Changing Flow Solutions to Level Up Your OrgWT19: 5 Game-Changing Flow Solutions to Level Up Your Org
WT19: 5 Game-Changing Flow Solutions to Level Up Your Org
 
Essential Habits for New Admins
Essential Habits for New AdminsEssential Habits for New Admins
Essential Habits for New Admins
 
Dreamforce 2019: "Using Quip for Better Documentation of your Salesforce Org"
Dreamforce 2019: "Using Quip for Better Documentation of your Salesforce Org"Dreamforce 2019: "Using Quip for Better Documentation of your Salesforce Org"
Dreamforce 2019: "Using Quip for Better Documentation of your Salesforce Org"
 
Save Millions of Clicks! Easily migrate complex schemas from SQL to Salesforce.
Save Millions of Clicks!  Easily migrate complex schemas from SQL to Salesforce.Save Millions of Clicks!  Easily migrate complex schemas from SQL to Salesforce.
Save Millions of Clicks! Easily migrate complex schemas from SQL to Salesforce.
 
Stamford developer group Omni channel
Stamford developer group Omni channelStamford developer group Omni channel
Stamford developer group Omni channel
 
Salesforce Sydney Trailblazer User Group Global Gathering Dreamforce ‘19 High...
Salesforce Sydney Trailblazer User Group Global Gathering Dreamforce ‘19 High...Salesforce Sydney Trailblazer User Group Global Gathering Dreamforce ‘19 High...
Salesforce Sydney Trailblazer User Group Global Gathering Dreamforce ‘19 High...
 
Health Cloud: Digital Transformation Driving Speed to Value
Health Cloud: Digital Transformation Driving Speed to ValueHealth Cloud: Digital Transformation Driving Speed to Value
Health Cloud: Digital Transformation Driving Speed to Value
 
tdx20cosenhancingyourcrmwitheinsteinai1592951856546.pdf
tdx20cosenhancingyourcrmwitheinsteinai1592951856546.pdftdx20cosenhancingyourcrmwitheinsteinai1592951856546.pdf
tdx20cosenhancingyourcrmwitheinsteinai1592951856546.pdf
 
Spring 21 Salesforce Release Highlights with Awesome Admin Marc Baizman Welli...
Spring 21 Salesforce Release Highlights with Awesome Admin Marc Baizman Welli...Spring 21 Salesforce Release Highlights with Awesome Admin Marc Baizman Welli...
Spring 21 Salesforce Release Highlights with Awesome Admin Marc Baizman Welli...
 
Getting Started Admin Fast Start.pdf
Getting Started Admin Fast Start.pdfGetting Started Admin Fast Start.pdf
Getting Started Admin Fast Start.pdf
 
Salesforce Backup, Restore & Archiving- Adam Best, Senior Program Architect
Salesforce Backup, Restore & Archiving- Adam Best, Senior Program ArchitectSalesforce Backup, Restore & Archiving- Adam Best, Senior Program Architect
Salesforce Backup, Restore & Archiving- Adam Best, Senior Program Architect
 
Demystifying Code for Admins: The Last Step to Apex
Demystifying Code for Admins: The Last Step to ApexDemystifying Code for Admins: The Last Step to Apex
Demystifying Code for Admins: The Last Step to Apex
 

Mehr von Salesforce Admins

Mehr von Salesforce Admins (12)

Admin Best Practices: Dashboards for Every Admin
Admin Best Practices: Dashboards for Every AdminAdmin Best Practices: Dashboards for Every Admin
Admin Best Practices: Dashboards for Every Admin
 
Admin Best Practices: Building Useful Formulas
Admin Best Practices: Building Useful FormulasAdmin Best Practices: Building Useful Formulas
Admin Best Practices: Building Useful Formulas
 
Awesome Admins Automate: Integrate Flow with AI and Chatbots
Awesome Admins Automate: Integrate Flow with AI and ChatbotsAwesome Admins Automate: Integrate Flow with AI and Chatbots
Awesome Admins Automate: Integrate Flow with AI and Chatbots
 
#AwesomeAdmins Automate: Create Triggered Flows and Batch Jobs
#AwesomeAdmins Automate:  Create Triggered Flows and Batch Jobs#AwesomeAdmins Automate:  Create Triggered Flows and Batch Jobs
#AwesomeAdmins Automate: Create Triggered Flows and Batch Jobs
 
Admin Best Practices: Remove Security Risk From Your Org with a User Audit
Admin Best Practices: Remove Security Risk From Your Org with a User AuditAdmin Best Practices: Remove Security Risk From Your Org with a User Audit
Admin Best Practices: Remove Security Risk From Your Org with a User Audit
 
Trailhead Live: Essential Habits & Core Admin Responsibilities
Trailhead Live: Essential Habits & Core Admin ResponsibilitiesTrailhead Live: Essential Habits & Core Admin Responsibilities
Trailhead Live: Essential Habits & Core Admin Responsibilities
 
Build AI-Powered Predictions with Einstein Prediction Builder
Build AI-Powered Predictions with Einstein Prediction BuilderBuild AI-Powered Predictions with Einstein Prediction Builder
Build AI-Powered Predictions with Einstein Prediction Builder
 
Semper Salesforce: Become a Salesforce Military Champion
Semper Salesforce: Become a Salesforce Military ChampionSemper Salesforce: Become a Salesforce Military Champion
Semper Salesforce: Become a Salesforce Military Champion
 
Best Practices and Tools for Backing Up Salesforce Data
Best Practices and Tools for Backing Up Salesforce DataBest Practices and Tools for Backing Up Salesforce Data
Best Practices and Tools for Backing Up Salesforce Data
 
WT19: Lightning Layout Tricks
WT19: Lightning Layout TricksWT19: Lightning Layout Tricks
WT19: Lightning Layout Tricks
 
WT19: Salesforce Tips, Tricks and Tools
WT19: Salesforce Tips, Tricks and ToolsWT19: Salesforce Tips, Tricks and Tools
WT19: Salesforce Tips, Tricks and Tools
 
Essential Habits for New Admins - Dec 2019
Essential Habits for New Admins - Dec 2019Essential Habits for New Admins - Dec 2019
Essential Habits for New Admins - Dec 2019
 

Kürzlich hochgeladen

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Kürzlich hochgeladen (20)

%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 

WT19: Metadata Magic: Maintain Code, Without the Code!

  • 1. Metadata Magic: Maintain Code, Without the Code! Technical Lead, Accenture Chris Henson
  • 2. Forward Looking Statement • Statement under the Private Securities Litigation Reform Act of 1995: • This presentation contains forward-looking statements about the company’s financial and operating results, which may include expected GAAP and non-GAAP financial and other operating and non-operating results, including revenue, net income, diluted earnings per share, operating cash flow growth, operating margin improvement, expected revenue growth, expected current remaining performance obligation growth, expected tax rates, the one-time accounting non-cash charge that was incurred in connection with the Salesforce.org combination; stock-based compensation expenses, amortization of purchased intangibles, shares outstanding, market growth and sustainability goals. The achievement or success of the matters covered by such forward-looking statements involves risks, uncertainties and assumptions. If any such risks or uncertainties materialize or if any of the assumptions prove incorrect, the company’s results could differ materially from the results expressed or implied by the forward-looking statements we make. • The risks and uncertainties referred to above include -- but are not limited to -- risks associated with the effect of general economic and market conditions; the impact of geopolitical events; the impact of foreign currency exchange rate and interest rate fluctuations on our results; our business strategy and our plan to build our business, including our strategy to be the leading provider of enterprise cloud computing applications and platforms; the pace of change and innovation in enterprise cloud computing services; the seasonal nature of our sales cycles; the competitive nature of the market in which we participate; our international expansion strategy; the demands on our personnel and infrastructure resulting from significant growth in our customer base and operations, including as a result of acquisitions; our service performance and security, including the resources and costs required to avoid unanticipated downtime and prevent, detect and remediate potential security breaches; the expenses associated with new data centers and third-party infrastructure providers; additional data center capacity; real estate and office facilities space; our operating results and cash flows; new services and product features, including any efforts to expand our services beyond the CRM market; our strategy of acquiring or making investments in complementary businesses, joint ventures, services, technologies and intellectual property rights; the performance and fair value of our investments in complementary businesses through our strategic investment portfolio; our ability to realize the benefits from strategic partnerships, joint ventures and investments; the impact of future gains or losses from our strategic investment portfolio, including gains or losses from overall market conditions that may affect the publicly traded companies within the company's strategic investment portfolio; our ability to execute our business plans; our ability to successfully integrate acquired businesses and technologies, including delays related to the integration of Tableau due to regulatory review by the United Kingdom Competition and Markets Authority; our ability to continue to grow unearned revenue and remaining performance obligation; our ability to protect our intellectual property rights; our ability to develop our brands; our reliance on third-party hardware, software and platform providers; our dependency on the development and maintenance of the infrastructure of the Internet; the effect of evolving domestic and foreign government regulations, including those related to the provision of services on the Internet, those related to accessing the Internet, and those addressing data privacy, cross-border data transfers and import and export controls; the valuation of our deferred tax assets and the release of related valuation allowances; the potential availability of additional tax assets in the future; the impact of new accounting pronouncements and tax laws; uncertainties affecting our ability to estimate our tax rate; the impact of expensing stock options and other equity awards; the sufficiency of our capital resources; factors related to our outstanding debt, revolving credit facility, term loan and loan associated with 50 Fremont; compliance with our debt covenants and lease obligations; current and potential litigation involving us; and the impact of climate change. • Further information on these and other factors that could affect the company’s financial results is included in the reports on Forms 10-K, 10-Q and 8-K and in other filings it makes with the Securities and Exchange Commission from time to time. These documents are available on the SEC Filings section of the Investor Information section of the company’s website at www.salesforce.com/investor. • Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements, except as required by law.
  • 3. https://help.salesforce.com/articleView?id=custommetadatatypes_overview.htm &type=5 “Custom metadata is customizable, deployable, packageable, and upgradeable application metadata. First, you create a custom metadata type, which defines the form of the application metadata. Then you build reusable functionality that determines the behavior based on metadata of that type.” So What is Custom Metadata?
  • 4. So what does that mean? • These are configurable metadata that can work kind of like object/records • Maintain aspects of your org that previously required developer involvement • Can package these and promote using change sets • Additional customizable declarative tools to solve complex and challenging issues • Better ability to drive scalability and maintainability • Think Custom Labels, but much, much better
  • 5. The trick…. • BUT…..As with all magic, there’s a trick: In most cases when using these, you will have to work with a developer initially to set this up properly, and ensure that their code will call the custom metadata you want to set up so that you can maintain it in the future. • Its very important that these are set up correctly from the beginning, because troubleshooting these can be difficult within the code, and if not planned properly can produce some unexpected results.
  • 6.
  • 7.
  • 8. Company_Code_Mapping__mdt[] companyCodes = [SELECT CompanyCode__c, Jurisdiction__c, CreatedBy, Label FROM Company_Code_Mapping__mdt WHERE Jurisdiction = ‘MA’]; for (Company_Code_Mapping__mdt code : companyCodes) { System.debug(code.Label + ': ' + code.CompanyCode__c + ‘, Created By: ‘ + code.CreatedBy + ' for: ' code.Jurisdiction__c); }
  • 9. Ideas for Using Custom Metadata
  • 10. Integration and Data Mapping/ Transformation • One of the biggest uses of custom metadata types • Create data mapping that will also add some transformational capability to your integration • Error handling code transformation • Legacy data integration that requires code/decode • These can be used in custom code and packaged, then if (when) the data mapping changes, this can be completed in most cases by updating the custom metadata
  • 11. • External data mapping for dummies! • “NYC” vs “New York City” type scenarios • Turn 12345 into “Please check the spelling of the person you are searching for” • Very useful in situations where a developer may have to hard code information so that it is transformed properly Support Data Transformation
  • 12. Control Trigger Actions • Can be used as part of a data validation • If the value isn’t part of the custom metadata list, then it may not be valid • Add a custom metadata call in the trigger, then use the type to declaratively update values • Add a City and State to a contact based on the company code or region their associated with
  • 13. • For complex queue routing requirements • Ideal for moderately shifting routing issues that require regular updating • Route based on user actions, case status, or type of case order • Can also be used for method of case closure logic Dynamic Case Queue Routing
  • 14. Other Useful Ideas • Business rules—Combine configuration records with custom functionality. Use custom metadata types along with some Apex code to route payments to the correct endpoint • Master data—Let’s say that your org uses a standard accounting app. Create a custom metadata type that defines custom charges, like duties and VAT rates. If you include this type as part of an extension package, subscriber orgs can reference the master data • Whitelists—Manage lists, such as approved donors and pre-approved vendors • Secrets—Store information, like API keys, in your protected custom metadata types within a package • Dynamic page creation
  • 15. Summary • Custom metadata types are a powerful way to gain additional functionality in your org declaratively • If set up properly, custom metadata can save you headaches down the road with maintainability and scalability • Learn more about custom metadata types and more ideas for their use at help.salesforce.com and typing custom metadata type in the search bar • There are multiple ways to use this functionality. The possibilities are endless!