If you are adding new fields to sObjects often, you know how time-consuming this can be, even if you are just accomplishing this task for a couple fields, because you have to bother with configuring the layouts, and setting up the FLS. More than 100 years ago Henry Ford applied the moving assembly line concept to his production method, however we don't have such an option for sObjects modifications, at least if you don't want to be dealing with the fun of XML files, however, even going down this road, you won't have the full speed of being able to modify and configure the objects and related settings.
This means that with the current tools that we have, we need to go step-through 3 to 6 pages in the Salesforce UI in order to create a new field in sObject - ok, cool, just about 30-60 seconds per field. What if you need to create a new object with 50 fields - hope you have an hour or so just for this "interesting" task. Even more time would be needed if you'd decide to add a new profile or change FLS configuration for a couple fields&profiles - forget about that whole remaining day when you start doing this.
In Salesforce, the data model is regarded as the foundation for each and every piece of functionality and business process - this is why we made working on sObjects editing our top priority for this moment in time. So let's go through some of the handy tools available for Administrators, Declarative Developers, and those who configure Salesforce orgs, and see how they can streamline the process and save the time.
sObjects Fields configuration
As we have started from the moving assembly line idea of Henry Ford, we'll stick to this idea in terms of working with sObjects in Salesforce as it has proven it's efficiency. Our conveyor starts from the fields definitions in a convenient UI where you can:
- Create multiple fields all at once without switching between different windows or pages
- Modify existing fields
The cool thing here is that all the changes are immediately reflected in the XML file of the object, so just in case you like working with XML - you can add "draft" fields using the UI, and then fine-tune them using the XML editor (or vice versa).
However, it's much easier to show you the potential of this editor than trying to compare it just using words:
Field-level security settings
The second step of our "sObjects conveyor" is FLS configuration. It doesn't matter what task you are resolving right now:
- Adding new profile(s) and setting corresponding FLS for all of the fields in sObject for this
- Adding new field(s) and setting FLS for all of the profiles
- Doing minor or major changes in the existing FLS configuration for an object with lots of fields
You can do any of them using the multiple built-in options for bulk, and easy changes in the configuration:
- All data about field-level security is shown on one screen - for all fields and all profiles at the same time
- Advanced filtering options for situations where you need just part of the information on the screen
- One-click changing of the settings
- Quick actions for the fields and profiles
- Bulk apply your FLS settings to multiple fields or profiles with just a couple clicks
- Import and Export options for quick migration between orgs - even to production!
The third step of your sObjects assembly line is Layouts configuration. And here you'll also get the same great options as in the FLS configurator:
- All needed data can be viewed at a glance, with different filtering options
- Easy visibility changes for fields on layouts
- Great "bulkified" actions
- An ability to put fields into different sections right from the IDE
- And a final touch, an option to open the layout editor in the Salesforce UI, to reorder the fields in the sections according to your needs