Sunday, 16 July 2017

Ctrl + Z - Setup Audit Trail

Control + Z is a used to undo the last change done during typing any code, or vice -versa.
What would be Control+Z when it comes to Salesforce? keeps an Audit Trail of configuration changes made in the Setup section. This Audit Trail is available for administrators to track recent setup changes. This becomes especially helpful if there are multiple administrators for your organization. 

Steps To View Setup Audit Trial: 

 Navigate to Setup | Administer | Security Controls | View Setup Audit Trail: 

The preceding screenshot shows the last 20 most recent configuration changes for your organization.

The Audit Trail is useful for troubleshooting. Because it captures date/time, you can often trace user issues back to a specific change. For example, if users all of a sudden are being asked to reset their passwords, you can trace that back to a change in password settings.

To download your organization’s full Setup history for the past 180 days, click the Download link. This will give you a CSV file that can be opened in Excel and sorted.

Starting with Winter'16 the SetupAuditTrail object ( has now been exposed via the Salesforce API's and within Apex via SOQL.

Have a look at Andy in the cloud blog about SetupAuditTrail object .

Audit Trail key concepts:

You can check Audit Trail for the mentioned section/type of changes:
Administration: This will track sundry administration changes such as vicissitudes in the company information, multiple currencies, users, electronic-mail address changes, profile changes, roles, record types, engendering e-mail footers, and domain name changes.

Customization: These vicissitudes are cognate to the interface changes, forecasts, contracts, conceptions, field tracking in victuals, support-cognate settings, process setups, and transmutes to groups.

Security and sharing: These are cognate to security settings and sharing, such as password policy changes, session setting changes, vicissitudes in SAML settings, and so on.

Data management: These vicissitudes are cognate to the mass expunction of records, data export requests, the mass transfer of records and import wizard utilization, and transmutes in analytic snapshots.

Development: This change is cognate to Apex classes, triggers, and Visualforce. Changes can include modifications to triggers, classes or Visualforce; remote site access setup; and site setup.

Sundry setups: These include sundry setup changes such as the engenderment of an API, utilization metering notifications, territories utilization, workflow and approbations settings, and AppExchange package installation/uninstallation, and engenderment and effacement of workflow actions are additionally tracked.

Utilizing the application: These transmutations are cognate to the vicissitudes in the account team and opportunity team selling settings, Google App accommodations, and the enabling and incapacitating of partner and customer portal users.


Monday, 19 June 2017

Salesforce Essentials - 27(Call from developer console to batch class and Schedule Batch class)

Steps to call batch class and  Schedule Batch class from Developer Console - 


In order to run batch process, you need to use
Database.executeBatch() method.

accountBatch btch = new accountBatch();

accountBatch - is your Salesforce Batch Class .

You can schedule this class for a particular day and any specified time at which the class can be run. Using this declarative way, the highest frequency we can have is once per day within Salesforce and not more than that. 

With the system.schedule we pass parameters:
system.schedule (Name_of_job, Time_for_scheduling_job, Schedular_class_name)

This class is scheduled to run at 12 AM, on the 31st of Dec.

You can Check the scheduled batch classes:

References :

Thursday, 25 May 2017

Salesforce Essentials - 26(Limitation of Lighting Professional edition in Salesforce)

Lighting Professional Edition in Salesforce

There are few features which are not available in the professional edition which needs to take care during implementation:

No Account Assignment Rules
No Territory Management
No Sales Teams (aka Opportunity Teams)
Configuration / Security / Administration
No Joined Reports
No Bucket Fields
No Cross Filters (e.g. Accounts without Opportunities)
No Dynamic Dashboards
No Scheduled Dashboards (you can schedule a Report)
50 Custom Report Types vs. 200 in Enterprise Edition
See our post on Enterprise Analytics for more details on these features

250 emails sent in a single mass email blast vs. 500 in Enterprise Edition
Sales (Sales Cloud)

Limit of 20 Custom Fields on Activities vs. 100 in Enterprise Edition
Limit of 10 Custom Tabs vs. 25 in Enterprise Edition
Limit of 50 Custom Objects vs. 200 in Enterprise Edition
No Workflow / Approvals / Visual Workflow
No Person Accounts
No Ability to mass Grant Login Access to a System Administrator
No Data Export (Weekly Export Service to backup your Salesforce org)
Support (Service Cloud)
Limit of 20 Validation Rules per Object vs. 100 in Enterprise Edition

Limit of 100 Custom Fields per Object vs. 500 in Enterprise Edition

No Service Cloud Console
No Salesforce Knowledge (Note: Knowledge is available at an additional cost in Enterprise Edition, and included in Unlimited Edition)
No Live Agent (Note: Live Agent is available at an additional cost in Enterprise Edition, and included in Unlimited Edition)
Extending Salesforce / Community / Portals

No Partner or Customer Portal
No Websites (aka / Sites)
To use Chatter Plus (Chatter Only) licenses in Professional Edition, you’ll need to contact Salesforce support and have Profiles enabled
No Salesforce Communities (released Summer ’13)
Custom Development and Sandboxes

No Change Sets (which are needed to deploy custom code)
No API (thus no ability to use the Data Loader or build custom integrations)
No Partial Copy Sandbox
Limit of 10 Developer Sandboxes* (*Change Sets disabled) vs. 25 in Enterprise Edtion
Lightning Professional Edition Limits

5 Process Builder processes
2 Permissions Sets
2 Custom Profiles
3 Record Types
2 Page Layouts
10 Developer Sandboxes

Download the full edition comparison chart 

Try the world’s #1 CRM solution free for a full 30 days. Sales Cloud — Lightning Professional Edition

A detailed difference between the features available and variations of these features in each of the editions is available on

You can understand the pricing on


Monday, 22 May 2017

Salesforce Essentials - 25(Magic Stick for Beginners - Developer Edition "DE org")

Development and deployment on typically take place in an environment or org, which provides a number of features and accommodations for applications within that environment. An environment lets you instantly start developing, testing and deploying your app in the cloud. For an explication of the types of environments, optically discern An Exordium to Environments.

Follwing are the salesforce licenses : 

Salesforce Customer Portal
2 Salesforce CRM licenses
2 Salesforce Mobile licenses
3 Salesforce Platform licenses
5 Salesforce Partner licenses
10 Salesforce Customer Portal Manager licenses  

Other Limits for Developer Edition:

5.0 MB of Data Storage
20.0 MB of File Storage ( attachments)
5000 API requests per 24 hours
Any number of applications
A 500 MB bandwidth and 10 minute service request time limits (per rolling 24 hours) 

Developer Edition (often referred to as a "DE org") is a fully-featured development environment with limits on data and users. Developer Edition is used for:

Trailhead - Salesforce's free and fun online learning tool requires Developer Edition.
Development and Testing - If you don't have a sandbox (a copy of your Salesforce production organization), you can use Developer Edition to isolate development and testing.

ISVs - Independent Software Vendors use DE orgs to create managed packages, which may then be released as apps on the AppExchange.

Developer Previews - Sometimes we release new functionality to Developer Edition before other editions, so you can practice with it.

Fun - You can have more than one Developer Edition, so use one whenever you want to mess around and try something new.

How to signup for free developer edition in Salesforce?

1. Open "".
2. Click "Sign Up" button.
3. Fill in the details. Click "Sign me up". 
4. Verify the account in email.
5. Use "" for login.

References :

Thursday, 18 May 2017

Salesforce Essentials - 24(Different Types Of Sandboxes)

Sandboxes :

A sandbox is a replica of an engenderment environment utilized for a variety of purposes, commonly including testing and development. Here's how it works: When you engender or refresh (essentially effaces and reconstitutes a sandbox utilizing the same name) a sandbox, a facsimile of the engenderment environment at that point in time is made.

different types of Sandboxes 

1) Full Sandbox - Plenarily testing changes against authentic data afore promoting to engenderment.  This may include utilizer acceptance testing.  All changes must go through this sandbox.  If multiple admins/developers are working on overlapping areas, this is the place where changes get merged. IDE can be habituated to compare changes by separate developers of the same apex code.

Full sandboxes have the same storage limit as your production organization.

Once you refresh the Full Copy Sandbox then to refresh it one more time you have to wait for 29 Days.

2) Partial Data Sandbox - This is an incipient sandbox type and I am not quite sure what the intention was.  Probably just a more frugal alternative to a full sandbox.  If you have a full sandbox, then partial data sandbox sounds like a good place for utilizer training for incipient features, incipient employees, etc.  Having authentic data can authentically avail with training.  Additionally, possibly a place to work on integration changes since it can hold quite remotely of authentic data.

Partial Data sandboxes have a 5 GB storage limit.

Once you refresh the Partial Data Sandbox then to refresh it one more time you have to wait for 5 Days.

3) Developer - A place to work through solutions to incipient requisites.  The main conception is to keep arbitrary experimentation out of the full sandbox.  It there are multiple admins/developers, each one should get their own so that they don't trample on each others work (until they deploy to the full sandbox).

Developer sandboxes have a 200 MB storage limit.

Once you refresh the Developer Sandbox then to refresh it one more time you have to wait for 1 Day.



4) Developer Pro - The main distinction between this and Developer is the amount of data that can be stored.  It additionally prehends some product data from engenderment.  If those two things are paramount, utilize this one.  Otherwise, it's interchangeble with Developer.

Developer Pro sandboxes have a 1 GB storage limit.

Once you refresh the Developer Pro Sandbox then to refresh it one more time you have to wait for 1 Day.

References :

Saturday, 13 May 2017

Time To Upvote -Series (Part 2)

Here we have some idea's which need to be upvoted :

Idea 1 
Make the Manage External User button available in lightning

Currently the Manage External User button and the nested buttons it hosts are not available in the lightning user interface, as a result users have to switch between lightning and salesforce classic to access the functionality, another drawback to lightning as having to toggle back and forth between two different interfaces undermines the value of lightning.  Please make the manage external user button and the nested buttons it hosts available in lightning


Idea 2
Choose Who To Send Flow Fault emails and Process Builder Error Emails to

The notifications currently go to the user who built the flow or process builder.
I am currently in a situation where the original user who created the flows in Sandbox and deployed them is no longer active. I therefore must change his email in order to receive the error messages on existing flows.

Idea 3 
Increase the limit on the number of reports a user can subscribe to

The new report subscription feature is really nice, but only being able to subscribe to 5 reports is not helpful.  Most users who want to subscribe to reports want to do this for at least 10 - 15 reports.  I'm not sure why the limit is hard-coded to be 5 but having a higher limit (like 25?) would be much appreciated.

Idea 4 
Process Builder: Error messages

Process Builder works great, but when there is a validation error or any other error, it doesn't provide the much information to user and user will never know how to resolve that issue.
Admin gets an email for this exception with the proper message, but if we can improve the error messages for the end user also, that would be great.

Please refer the following -

Saturday, 29 April 2017

Salesforce Essentials - 23(Batch Apex in Salesforce )

To use batch Apex, write an Apex class that implements the Salesforce-provided interface Database.Batchable and then invoke the class programmatically.
To monitor or stop the execution of the batch Apex job, from Setup, enter Apex Jobs in the Quick Find box, then select Apex Jobs.

It allows you to define a job that can be divided into manageable chunks, where each chunk can be proceed separately.

 Methods defined in batch apex class?

To use Batch Apex, you must implement “Database.Batchable”. This interface has three methods. those are:
1. Start
2. execute
3. Finish

 Return types and syntaxes of all methods of batch apex class?


global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc) { }


global void execute(Database.BatchableContext BC, list<P>){ }

global void finish(Database.BatchableContext BC){ }

Sample Code :

global class Accountupdate implements Database.Batchable<sObject>

global Database.QueryLocator start(Database.BatchableContext BC)
        String query = 'SELECT Id,Name,Phone FROM Account ';
        return Database.getQueryLocator(query);

    global void execute(Database.BatchableContext BC, List<Account> scope)
        for ( Account a : scope)
        update scope;
    global void finish(Database.BatchableContext BC)

When we need to go for batch apex class?
  • When you want to do a bulk job.
  •  To have higher governor limits. 
  •  We can schedule to run at different time.
References :

Monday, 24 April 2017

Today's Adventure - Salesforce Summer ’17

When Do Features Become Available?

Some features in Salesforce Summer ’17 affect all users immediately after the release goes live. Consider communicating these changes to your users beforehand so that they’re prepared.The Salesforce Summer’17 release is now in available under the pre-release program.

Get Better Assistance with the Restyled Lightning Experience Migration Assistant

Salesforce has given the Migration Assistant an easier-to-use, wizard-style interface.Accessing the Migration Assistant in Salesforce Classic is a no-brainer now. From Setup, click Get Started in the Lightning Experience Migration Assistant tile at the top of the menu. 

Switch More Users to Lightning Experience

 To help, the Switch Users to Lightning Experience tool now displays all users in your org, so you can switch the exact group that you want in one go. The tool also makes it easier to find specific users in the list and to see which users in your org are eligible to switch. This change applies to both Lightning Experience and Salesforce Classic.

Make Lightning Experience - the Only Experience 

Ready to move from Salesforce Classic to Lightning Experience without looking back? Just hide the option to switch to Salesforce Classic from your Lightning Experience users so that they stay in Lightning ExperienceThis feature is new in both Lightning Experience and Salesforce Classic.

Now you can create a permission set and assign it to different profile.

When you enable the permission for your Lightning Experience users, new and existing users see Lightning Experience the next time they log in to Salesforce. And, they no longer see the Switch to Salesforce Classic link.

Ditch Your Mouse

You can now use keyboard shortcuts to maximize your efficiency and speed while working in Lightning Experience. 

Navigate to a Record Directly from an Action Success Message

The message now includes the record name as an active link that takes you right to that record

Access Field History Related Lists in Lightning Experience

Track and display the field history for standard or custom objects, regardless of which Salesforce interface you’re using. If you added the History related list to objects in Salesforce Classic, you can now see it in Lightning Experience.
  1. Click the Object Manager tab, and select an object from the list
  2. In the left pane, click Fields and Relationships and then click Set History Tracking
  3. Select the fields you want to track
  4. Add that related list to your object’s page layout
Preview Case Details with Case Hovers

Users can hover over cases to get a sneak peek at the details, including the description and latest update
Find Favorites with a Simplified Favorites List
Salesforce has removed the top favorites section from your favorites list to simplify the way you access your favorite pages in Salesforce. Favorites give you instant access to important records, lists, groups, dashboards, and other frequently used pages. 
References - 

Please follow the amazing blogs for more detailed Information