Sunday, April 3, 2016

Salesforce Spring 16 Release features.

All new Salesforce orgs now come with duplicate record management features turned on for accounts, contacts, and leads. Now it’s easier than ever to prevent duplicate records in your org. This feature is available in both Lightning Experience and Salesforce Classic. Lightning Experience is supported with Microsoft® Internet Explorer® version 11, Apple® Safari® version 8.x on Mac OS X, and Microsoft® Edge for Windows® 10. The most recent stable versions of Mozilla® Firefox® and Google Chrome™ are also supported. If you’re using Microsoft® Internet Explorer® versions 7–10, you’re redirected to Salesforce Classic. Below are the quick summary of Spring’16 release from user’s / customer’sDeveloper Point of view:-1. View and Address Security Risks Using Health Check
: – Now you can see and fix security risks in your Session Settings,
Password Policies, and Network Access settings on a single window. A new
health check dashboard shows how well your org measures against the
Salesforce-recommended baseline. Health Check lets you understand and
proactively re mediate your org’s security risks and vulnerabilities
from a single page.

This feature is available in both Lightning Experience and Salesforce Classic.2. New Change Set Components:-New components are available for deployment. The components available for a change set vary by edition. The Wave Application,Wave Datasetcomponents are now available for change sets.

3. Run Script After Sandbox Creation and Refresh :- To
make your sandbox environment business ready, automate data
manipulation or business logic tasks. At sandbox creation, specify a
single Apex class to perform the tasks. This class executes every time
the sandbox is Create an Apex class that implements SandboxPostCopy and specify the class in the textbox.

4. Global Picklist (Pilot) :- Global picklists just got more accessible! This pilot program has been expanded to let more of you (DeveloperEdition and sandboxesby default, and All other editions with pilot participation) try the feature.

Global picklists let you efficiently reuse a
single list of values for multiple custom picklist fields. Easily share
picklists across objects by creating picklist fields based on the
master list of values

New picklists based on the global
picklist inherit its values. When you edit the global picklist, the
other picklists that use its values are also updated.

5. Create Test Suites of Commonly Used Apex Test Classes :-
You probably have sets of Apex test classes that you regularly run
together. For example, perhaps you have test classes that you run every
time you prepare for a deployment or Salesforce releases a new version.
You can now create test suites that contain those sets of classes.
Rather than selecting all the relevant classes each time you start a
test run, you can simply run one or more test suit

To create a test suite using the Developer Console, select Name | Developer Console | Test | New Suite. You can create or modify test suites that contain up to 200 test classes using the Developer Console.6. Use @future to Avoid the Dreaded MIXED_DML_OPERATION Error in Apex Tests :-
Mixed Data Manipulation Language (DML) operations within a single
transaction aren’t allowed. You can’t perform DML on a setup sObject and
a non-setup sObject in the same transaction. Instead, you can perform
one type of DML as part of an asynchronous job and run the other types
in other asynchronous jobs or in the original transaction. This
alternative is widely used. However, when this alternative was used
within the context of an Apex test, errors still resulted. Salesforce
now fixed this bug.

7. Process Builder Enhancement :- There are several enhancements in Process Builder, those are followings

A) Easily Reorder Criteria in Your Process with Drag and Drop :-
Save time and clicks by quickly changing the order of criteria and
action groups in your process. Just drag and drop it’s that easy.
Previously, to change the order, you had to delete and redefine criteria
and actions. Criteria are evaluated in the order shown on the canvas.

B) View Field Names in Your Process at a Glance:-
Due to limited space, you can rarely see an entire field name. Now you
can see what’s being evaluated or updated at a glance. Just hover over
the field name in the criteria or action side panel to see the entire
name.

C) Easier Mentions in Post to Chatter Actions
:- It’s now easy to mention users or groups in Post to Chatter actions.
Instead of inserting mentions with a separate field, just use the @
symbol to add mentions directly to the message. For example, type @rake
in the message and then select the matching result

D) Send Email Alerts for Tasks and Events:-
You can now create email alerts for activities (tasks and events). Once
you create an email alert, you can add it to a process, workflow rule,
milestone, approval processe, or flow.

8. Add Visualforce Pages to the Lightning Experience Navigation Menu :- You can now customize the Lightning Experience navigation menu by
adding Visualforce tabs. This capability already exists in Salesforce
Classic and the Salesforce1 mobile app. Now you can do it in Lightning
Experience.

9. Determine User Experience Context:- The User.UITheme and User.UIThemeDisplayed global variables and the UserInfo.getUiTheme() and UserInfo.getUiThemeDisplayed() Apex
utility methods are improved to support the Salesforce1 mobile app and
Lightning Experience. These existing variables and system calls have
expanded the range of return values to support the new user experience
contexts. Possible return values include the following.

Theme1—Obsolete Salesforce theme

Theme2—Salesforce Classic 2005 user interface theme

Theme3—Salesforce Classic 2010 user interface theme

Theme4d—Modern “Lightning Experience” Salesforce theme

Theme4t—Salesforce1 mobile Salesforce theme

PortalDefault—SalesforceCustomer Portal theme

Webstore—SalesforceAppExchange theme

10. Query Records Saved in All Users’ Private Folders:-
Use the allPrivate query scope to find or delete reports and
dashboards saved in all users’ private folders. For example, this query
returns reports saved inside users’ private folders that haven’t been
run in more than one year.

SELECT Id FROM Report USING SCOPE allPrivate WHERE LastRunDate < LAST_N_DAYS:36511. Upsert Custom Metadata Records :- You can now use the Apex upsertMetadata() function to insert or update custom metadata records.12.Stricter Enforcement of Access Checks – Lightning Components
:- The framework now enforces access check violations. Previously, the
access violations only generated warnings. Improved access check
enforcement enables component authors to have greater control over ow
their components are used. If your code accesses a resource, such as a
component or attribute, that doesn’t have an access system attribute
allowing you to access it, the code doesn’t execute or returns
undefined. You’ll also see a warning in your browser console if you
enabled debug mode.

13.Capture Design Variables with Lightning Components Tokens (Developer Preview)
:- You can reuse design tokens throughout your Lightning components CSS
resources. Tokens make it easy to ensure that your design is
consistent, and even easier to update it as your design evolves. To
create a tokens bundle using the Developer Console, select Name | Developer Console | File | New | Lightning Tokens (Developer Preview )