Title: 7 Rules for a Better Salesforce Development
1- 7 Rules for a Better Salesforce Development
- Salesforce ventures require arranging your
application and at times creating code. To
guarantee execution, practicality and stage
limits, you have to do the correct design
development. It isn't on the grounds that "it
works" that it is accurately arranged. Whenever
your arrangement could be reviewed by Salesforce
or a Salesforce consulting partner. On the off
chance that you definitely know the prescribed
best procedures, you will have less work to do
after the survey. Here are some best practices
that you can adopt for an efficient Salesforce
Development. - DML operation
- For information preparing activities, for
example, embeddings, refreshing, deleting,
upserting, and so forth. Salesforce gives DML
explanations and Database articulations. The
aggregate number of DML tasks permitted in one
exchange is 150 according to as far as possible.
In this manner, for mass information preparing
assignments you ought to perform DML activity on
numerous records at once utilizing the lists or
maps. - You ought to never perform DML task in for loop
in such a case that the quantity of cycles goes
past 150 then it will hit the representative
limit and cause limit exception error. - Creating a Test Class
- While making a test class you should not utilize
organization information but instead, you should
create some test information for this purpose. To
make the test information you ought to make an
explicit technique with the comment _at_Testsetup
and make test information and afterward the test
data(created in _at_testsetup strategy) would be
accessible in the various strategies existing in
the test class. Accordingly, you don't need to
make separate test information for each strategy
existing in the test class. - Sharing Visualforce Pages Between Mobile and
Desktop - Re-examine the Visualforce pages that show up in
both the Salesforce application and in the - full Salesforce site to help the two conditions.
This incorporates Visualforce pages utilized as
custom activities, and Visualforce pages added to
standard page designs, aside from those added to
the Mobile Cards segment of a page format. - Visualforce pages that need to work in both
environments include Visualforce pages that
need to work in the two situations include - Pages utilized as custom activities. Custom
activities show up in the activity bar in the
Salesforce application, and in the publisher menu
in the full Salesforce site. - Pages added to typical page designs, when
Available for Lightning Experience, Lightning
Communities, and the versatile application is
empowered for the page. - Custom Visualforce tabs or links added to typical
page formats. - Standard tab abrogates with Visualforce pages for
the New, Edit, View, Delete, and Clone
activities. Abrogating standard rundown and tab
controls isn't bolstered in the application.
Catch abrogates won't show up in the application
except if Available for
2- Lightning Experience, Lightning Communities, and
the portable application is empowered for the
page. - JavaScript Remoting and Static HTML
- Consolidate JavaScript remoting and static HTML
to offer the best client encounter, with the - best execution and UI match to the Salesforce
application. This engineering maintains a
strategic distance from most Visualforce labels
for rendering page components in JavaScript.
This alternative requires the most designer
ability and can take somewhat longer to set up
than standard Visualforce or blended Visualforce
and HTML. Utilize the Salesforce Mobile Packs
for a quick begin and to work with the specific
most recent in versatile Web application
innovation. - Choosing an Effective Page Layout
- Design Visualforce pages that look great and
function admirably inside the Salesforce - application by utilizing a page format proper for
the setting that the page is utilized in. Pages
included as primary route tabs or as custom
activities in the activity bar can utilize almost
the full screen of the gadget and can scroll
vertically, while Visualforce added to an
object's page format needs to fit inside an
explicit, restricted space. By and large,
Visualforce added to page designs works best if
it's perused just, initially data. Put includes
that require client association, as multi-field
forms, on full-screen pages by including them as
tabs in the primary route, or as custom
activities from the activity bar. - User Input and Interaction
- Utilize ltapex inputgt, the type attribute, and go
through HTML ascribes to make mobile- - friendly forms and UIs that are proficient and
exploit local portable program highlights.
Without a console and mouse, standard HTML
structures can be troublesome for clients to
round out and associate with on cell phones,
particularly telephones. For Visualforce pages
that don't utilize JavaScript remoting to
influence demands, to pick Visualforce segments
for shape contribution with an eye towards
portable clients. No other change you can make to
your Visualforce pages will have a bigger ease
of use effect than exploiting new HTML5 and
portable program highlights to enhance your
structures and UI controls. - Choose Efficient Input Elements
- Use ltapexinputgt to get client input at
whatever point conceivable. ltapex inputgt is
an - HTML5-prepared, portable amicable, broadly useful
info segment that adjusts to the
information expected by a shape field. It's signif
icantly more adaptable than - ltapexinputFieldgt in light of the fact that it
utilizes the sort ascribe to enable customer - programs to show type-fitting client input
gadgets, for example, a date picker, or utilize a
sort explicit console that makes entering
contribution on a cell phone a lot simpler.
3ltapexinputFieldgt creates a great deal of HTML
and requires extra assets to stack, which
implies it's not the most productive segment to
use over a portable remote association. Conclusio
n The key to reaping the benefits of any platform
is to deploy the best practices of that
platform. You can take after the practices
discussed in this blog for a better Salesforce
Development process. All of these practices are
tried and tested. Also, they are highly
prescribed by the Salesforce Committee. Reference
-https//www.mindstick.com/Articles/33674/7-rules
-for-a-better-salesforce- development