Recipe For Happy Salesforce Org
Ashish Agarwal
Technical Architect @ Salesforce | Salesforce Data Cloud, Sales Cloud, Service Cloud, CPQ, Experience Cloud, DevOps. Seasoned Corporate Trainer
Hello Ohana,
Hope you are all keeping yourself safe and healthy and taking some time out for yourself apart from your Salesforce Love.
I know there are many people like me who are always in constant search of Best practices and ways to keep your organisations' Salesforce Org/Orgs Healthy and scalable.
In this article, I will list down some practices which I follow and found super useful in keeping my company's Org tidy and scalable. I will cover the individual topics in detail if I get some support from the audience.
Sprint/Agile/Scrum
Project Documentation
Release Guideline:
I know on this point every company struggles. Here are some tips
Defined Development Lifecycle
Every company has some development lifecycle knowingly or unknowingly. Identifying and setting up a guideline can give you and your team a clear understanding of what to do and what not to do.
DevOps Automation is a must
If you have not invested in DevOps yet, trust me it's time to do that. You can achieve very good DevOps at a very minimum cost and can go for expensive but highly customisable App exchange solutions.
I did set up DevOps multiple times for many organisations and I found that there is plenty of open-source or low-cost software which can fulfil almost all DevOps needs. You need to invest in research but it is worth it by all means. Some tools are (Teamcity, Jenkins, Sonarcloud)
Below is the flow that We are using in our project
System Admin profile is for only System Admins
No matter how you want to explain but there are no reasons for anyone except System admins to have System admin profiles.
There are several disadvantages and risks associated with assigning system admin profiles to Developers, BA's, Product Owners.
You can create these users in production as inactive System admin users and by using the Post sandbox refresh script you can make them active. This will give them the freedom to do development in the sandbox without exposing production.
领英推荐
Development Best Practice Guideline
By now everyone in the industry understands how crucial Best practice Guideline is. You can find plenty of documentation about it from Salesforce, Industry experts, Bloggers etc.
Some of my favourites are:
Code Review Guideline
Code review is undoubtedly an integral part of any Development lifecycle. But making it consistent is equally important. some benefits of review guidelines include
A few examples steps of guidelines include
You can include many other steps but I will suggest keeping it minimalistic.
Static Code Review
Static code review is scanning of code and running against some pre-defined rules to check some best practices like
These tools keep the hygiene of your system with no effort after setup. You can configure them with
Test Code ( for Apex, Lwc, Aura, Flow ) should cover All (positive/negative) test case scenarios
In my entire journey with Salesforce, I have never seen a single org all Developers are writing Test codes to cover Test Use cases but they write as Salesforce doesn't allow them to push code without 75% code coverage.
We just being lazy while writing test code as we believe the QA team will cover actual scenarios. But trust me writing accurate test code gives you immense confidence in your system and also gives you chance to find issues which generally visible when things go wrong like bulk operations, record Locking etc.
By Using Stubbing and Mocking any team can create a Test framework that will speed up Test code coverage.
Use Gitflow as a branching strategy (you will thank me always for this)
How can I forget this gem sitting in all my DevOps implementations? I love it as its time tested and proven and covers the most complex DevOps and Release requirements.
You can search about it on the internet as there are many articles available.
When I started this article, I was not expecting it will require so much space. And I know I have not even scratched the surface of each topic.
I will try my best to write down articles to cover individual topics.
Please share your experience and tips to make Your system healthy and happy. Also, share which topic you want me to cover in detail.
Thanks