Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Low-Code Application Development with Salesforce

You're reading from   Hands-On Low-Code Application Development with Salesforce Build customized CRM applications that solve business challenges in just a few clicks

Arrow left icon
Product type Paperback
Published in Oct 2020
Publisher Packt
ISBN-13 9781800209770
Length 608 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Enrico Murru Enrico Murru
Author Profile Icon Enrico Murru
Enrico Murru
Arrow right icon
View More author details
Toc

Table of Contents (28) Chapters Close

Preface 1. Section 1: What Is Salesforce?
2. Chapter 1: A Brief Introduction to Salesforce FREE CHAPTER 3. Section 2: Data Modeling
4. Chapter 2: Building the Data Model 5. Chapter 3: Mastering Formulas 6. Chapter 4: Cleaning Data with Validation Rules 7. Chapter 5: Handling Dynamic Configuration 8. Chapter 6: Security First – The "Who Sees What" Paradigm 9. Section 3: Automation Tools
10. Chapter 7: Be a Workflow Champion 11. Chapter 8: Setting Up Approval Processes 12. Chapter 9: Process Builder – Workflow Evolution 13. Chapter 10: Designing Lightning Flows 14. Chapter 11: Interacting with Actions 15. Section 4: Composing the User Interface
16. Chapter 12: All about Layouts 17. Chapter 13: The Lightning App Builder 18. Chapter 14: Leveraging Customers and Partners Power with Communities 19. Section 5: Data Management
20. Chapter 15: Importing and Exporting Data Declaratively 21. Chapter 16: Learning about Data Reporting 22. Section 6: Ready to Release?
23. Chapter 17: The Sandbox Model 24. Chapter 18: Deploying Your Solution 25. Section 7: Before We Say Goodbye
26. Chapter 19: Salesforce Ohana – The Most Amazing Community Around 27. Other Books You May Enjoy

Setting up custom settings

Since the beginning of my Salesforce career as a developer (a devmin actually, as I usually did both developer and administration tasks), it was clear that the Salesforce platform was missing an important part of building efficient and maintainable algorithms. It required a way to define some sort of variables (or placeholders of values) that could be referenced in formulas and whose values could be changed on the fly when needed, without the need to update the formula itself.

Let's perform the following practical example and take one of the validation rules we saw in Chapter 4, Cleaning Data with Validation Rules (based on the Opportunity object):

AND(
  OR(
    $User.Department != "Sales",
    $User.Division != "Big Customers"
  ),
  Amount > 500000
)

This checks whether the current user who is creating/updating an Opportunity is in the Sales department...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime