What is granular locking in Salesforce?

By default, the Force.com platform locks the entire group membership table to protect data integrity when Salesforce makes changes to roles and groups. This locking makes it impossible to process group changes in multiple threads to increase throughput on updates. When the granular locking feature is enabled, the system employs additional logic to allow multiple updates to proceed simultaneously if there is no hierarchical or other relationship between the roles or groups involved in the updates.

Check the below link for more information

https://resources.docs.salesforce.com/sfdc/pdf/draes.pdf

Cheers!!!

Formula field in Activity to get account information


Cheers!!!

In what ways that SOQL differs from SQL

Here are some ways that SOQL differs from SQL.

No INSERT, UPDATE or DELETE statements, only SELECT
No command execution
No wild cards for fields; all fields must be explicitly typed
No JOIN statement; however, you can include information from parent objects like Select name, phone, account.name from contact
No UNION operator
Queries cannot be chained together

Cheers!!!

Platform Encoding in Visualforce

In Visualforce, the platform has three main encoding functions that developers can use to neutralize potential XSS threats: HTMLENCODE, JSENCODE, and JSINHTMLENCODE. To choose which encoding to use, consider how your browser is parsing the output.

* If the value is going to be parsed by the JavaScript parser, use JSENCODE().
* If the value is going to be parsed by the HTML parser, use HTMLENCODE().
* If it’s a combination of both …
    * Use JSENCODE(HTMLENCODE())
    * Or JSINHTMLENCODE().

Cheers!!!

What is the Apex Crypto Class?

As per the Crypto Class documentation in the Apex Developer's Guide, the Apex Crypto class provides a number of cryptographic functions for creating digests, message authentication codes, and signatures, as well as functions for encrypting and decrypting information. These functions allow you to protect the confidentiality of data as well as allow external systems to verify the integrity of messages and authenticity of the sender.

Check the below link for more information

https://developer.salesforce.com/page/Apex_Crypto_Class

Cheers!!!

Formula field to find Time Zone from State field in Salesforce

Formula field to find Time Zone from State field in Salesforce

IF(CASE(BillingState, 'CA', 1, 'NV', 1,'OR', 1, 'WA', 1, 0) >=1, "Pacific Standard Time", null)+ 
IF(CASE(BillingState, 'AZ', 1, 'CO', 1,'ID', 1, 'MT', 1, 'NM', 1, 'UT', 1, 'WY', 1, 0) >= 1, "Mountain Standard Time", null)+ 
IF(CASE(BillingState, 'AL', 1, 'AR', 1, 'IL', 1, 'IA', 1,'KS', 1, 'LA', 1,'MN', 1,'MS', 1,'MO', 1,'NE', 1,'ND', 1, 'OK', 1,'SD', 1,'WI', 1, 0) >= 1, "Central Standard Time", null)+ 
IF(CASE(BillingState, 'CT', 1, 'DE', 1, 'GA', 1, 'ME', 1, 'MD', 1, 'MA', 1,'MI', 1, 'NH', 1, 'NJ', 1, 'NY', 1, 'NC', 1, 'OH', 1, 'PA', 1, 'RI', 1, 'SC', 1, 'VT', 1, 'VA', 1, 'WV', 1, 0) >= 1,"Eastern Standard Time", null)+ 
IF(CASE(BillingState, 'AK', 1, 0) >=1, "Alaskan Standard Time", null)+ 
IF(CASE(BillingState, 'HI', 1, 0) >=1, "Hawaiian Standard Time", null)+ 
IF(BillingState = 'FL', IF(MID(Phone,2,3) = "850","Central Standard Time","Eastern Standard Time"),null)+ 
IF(BillingState = 'IN', IF(MID(Phone,2,3) = "219","Central Standard Time","Eastern Standard Time"),null)+ 
IF(BillingState = 'KY', IF(MID(Phone,2,3) = "270","Central Standard Time","Eastern Standard Time"),null)+ 
IF(BillingState = 'TX', IF(MID(Phone,2,3) = "915","Mountain Standard Time","Central Standard Time"),null)+ 
IF(BillingState = 'TN', IF(CASE(MID(Phone,2,3),"865",1,"423",1,0)>=1,"Eastern Standard Time", "Central Standard Time"),null)

Cheers!!!

Salesforce1 login from many devices

By default, only 5 devices can login as the same user on Salesforce1. If you login on a 6th mobile device concurrently, you will be prompted with a message indicating that 'already 5 login sessions exist.'

At that point, the 'oldest' Salesforce1 session will be logged out.

Check the below link form more information

https://help.salesforce.com/apex/HTViewSolution?id=000229663&amp%3Blanguage=ja

Cheers!!!

How to enable Service Cloud User check box for multiple users in Salesforce?

UserPermissionsSupportUser is the api name for the Service Cloud Check box on the user object..

Update UserPermissionsSupportUser value to the set of users to enable Service Cloud User check box for multiple users in Salesforce.

Cheers!!!

How to enable Salesforce1 User check box for multiple users in Salesforce?

UserPermissionsMobileUser is the api name for the Salesforce1 User Check box on the user object..

Update UserPermissionsMobileUser value to the set of users to enable Salesforce1 User check box for multiple users in Salesforce.

Cheers!!!

Crypto Class in Salesforce

Provides methods for creating digests, message authentication codes, and signatures, as well as encrypting and decrypting information.

Check the below link for more information

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_crypto.htm

Cheers!!!

Entity is not org-accessible in Salesforce

1. Check whether there are any typo in the code.

2. If the issues is in Apex manage sharing reason access, check the OWD of the object.

Note:

OWD of the object should be either Private or Public Read Only to access Apex Manage Sharing Reason.

Hope this helps!!

Cheers!!!

Apex Sharing Reason in Salesforce

Apex sharing reasons are used by developers when adding sharing to a record programatically. Using an apex sharing reason prevents standard users from deleting the sharing, and allows the developer to track why they added the sharing.

1. Go to an object and click New in Apex Sharing Reason related list.


2. Create New Apex Sharing Reason.


Syntax:

Schema.CustomObject__Share.rowCause.SharingReason__c

Sample Code:

Schema.Member__share.RowCause.Sample_Reason__c

Cheers!!!

How to setup Enterprise Territory Management in Salesforce?

1. Go to Enterprise Territory Management Settings.


2. Click "Enable Enterprise Territory Management".


3. Select the related records access and click Save.


4. Click "New Territory Type".


5. Save Territory Type.


6. Click "New Territory Model".


7. Save the Territory Model.


8. Click Veiw Hierarchy to create Territory.


9. Click "Create Territory".


10. Set the other stuffs.


Cheers!!!

How Does Filter-Based Opportunity Territory Assignment Work in Salesforce?

Filter-Based Opportunity Territory Assignment lets you use a simple job to assign territories to opportunities. We provide code for an Apex class that you can use as-is or modify as needed based on our guidelines. After you create and deploy the class, run the job to complete the assignment process. Job options include making assignments within date ranges and assigning territories to open opportunities only. You can also configure your settings to run the job every time an opportunity is created.

The Apex class code Salesforce provides assigns territories to opportunities based on a number of factors.

• Is the opportunity excluded from filter-based territory assignment? If so, no territory is assigned.

• Does the opportunity have an account assigned and does that account have a territory assigned from the active territory model? If so, the account’s territory is assigned to the opportunity. If not, no territory is assigned.

• Does the opportunity’s assigned account have multiple territories from the active model assigned? If so, the job can use a priority value from the Territory2type object or other criteria to determine which territory (if any) to assign to the opportunity.

Cheers!!!

ENTERPRISE TERRITORY MANAGEMENT in Salesforce

Enterprise Territory Management allows you to organize your sales structure into separate territories, based on geographic attributes, named accounts, industry/verticals, or any other criteria that suits your organization. You can experiment with different territory models and activate the one that works best for your sales teams.

Deploying Territory Management includes these steps:

Build your territory hierarchy.
Assign users to territories and create rules for account assignment.
Preview your account assignments.
Activate your territory model.

Territory Type
Territory types help you organize your territories by key characteristics important to your company. Every territory you create must have a territory type. Territory types are used for organizing and creating territories only: they do not appear on territory model hierarchies.

Territory
Territories organize groups of accounts and the Salesforce users who work with those accounts. Territories are created based on territory types.

Territory Type Priority
Specifying and managing territory type priority information helps you choose the appropriate territory type for territories you create or edit. There are no predefined priority options, so your organization should create its own priority scheme. For example, 001 may indicate that a territory type is the highest priority or the lowest. Make sure your scheme can scale as you add more territory types.

Territory Model
A territory model represents a complete territory management system for your organization. Modeling lets you create and preview multiple territory structures and different account and user assignments before you activate the model that works best.

Territory Hierarchy
The territory hierarchy shows a model’s territory structure and serves as its main interaction point. Start from the hierarchy to create, edit, and delete territories; run assignment rules for territories, and navigate to territory detail pages for more information. From the hierarchy, you can also assign territories to opportunities, run assignment rules at the model level, and activate or archive the model.

Territory Model State
Territory model state indicates whether a territory is in the planning stage, in active use, or archived. Your organization can have only one active territory model at a time, but you can create and maintain multiple models in planning or archived state to use for additional modeling or reference

Cheers!!!

Platform Cache in Salesforce

Platform Cache is a memory layer that stores Salesforce session and org data for later access. When you use Platform Cache, your applications can run faster because they store reusable data in memory. Applications can quickly access this data; they don’t need to duplicate calculations and requests to the database on subsequent transactions. In short, think of Platform Cache as RAM for your cloud application.

With Platform Cache, you can also allocate cache space so that some apps or operations don’t steal capacity from others. You use partitions to distribute space. We’ll get to partitions later.

1. Go to Platform Cache.

2. Request Trial Capacity.


3. Create a New Platform Cache Partition.


4. Save a New Platform Cache Partition.


Sample Apex Class:

public class BusScheduleCache {
    private Cache.OrgPartition part;
    
    public BusScheduleCache() {
        Cache.OrgPartition orgPart = Cache.Org.getPartition('local.BusSchedule');
    }
    
    public void putSchedule(String busLine, Time[] schedule) {
        // Get partition
        Cache.OrgPartition orgPart = Cache.Org.getPartition('local.BusSchedule');
        
        // Add cache value to the partition. Usually, the value is obtained from a callout
        orgPart.put(busLine, schedule);
    }
    
    public Time[] getSchedule(String busLine) {
        Cache.OrgPartition orgPart = Cache.Org.getPartition('local.BusSchedule');
        Time[] listTimes = new Time[]{};
        Time[] listTimes1 = (Time[])orgPart.get('BusSchedule');
        if (listTimes1 == null) {
            listTimes.add(Time.newInstance(8, 0, 0, 0));
            listTimes.add(Time.newInstance(17, 0, 0, 0));
        } else {
            listTimes = listTimes1;
        }
        return listTimes;
    }
}
Cheers!!!

Salesforce User Research Program

Use the below link to join Salesforce User Research Program.

https://design.secure.force.com/ux?rc=db95a15d4f618a4

Very useful!!!

Cheers!!!

How to get data from one org to another org in Salesforce?

Check the below links for the tools to get data from one org to another org in Salesforce

https://www.sfapex.com

Direct Download - https://www.sfapex.com/download/setup.exe

http://www.talend.com/download

I recommend SFApex tool. Awesome tool. Saves lot of time during migration. Easy to use and setup.

Cheers!!!

aura:method in Salesforce

Use <aura:method> to define a method as part of a component's API.

This enables you to directly call a method in a component’s client-side controller instead of firing and handling a component event.

Using <aura:method> simplifies the code needed for a parent component to call a method on a child component that it contains.

Sample Code:

Lightning App:

<aura:application >
    <c:myLightningComponent/>

</aura:application>

Lightning Component:

<aura:component >
    <aura:method name="compMtd" action="{!c.callFromCompMetd}">
        <aura:attribute type="String" name="Str" default="testing"/>
    </aura:method>
    <ui:button label="Click" press="{!c.callBtn}"/>
</aura:component>

Lightning Controller:

({
callBtn : function(component, event, helper) {
component.compMtd();
},
    callFromCompMetd : function(component, event, helper) {
        var params = event.getParam('arguments');
        if (params) {
            var param1 = params.Str;
    alert(param1);
        }
}
})

Output:


Cheers!!!

Lost my contact number associated to Salesforce authenticator


Click Disconnect next to App Registration Salesforce Authenticator.

Cheers!!!

Chart Colors in Visualforce Charting

By default, chart colors match those of the built-in reporting and analytics charts so that you can create visually-consistent dashboards. If you want to create your own color scheme you can customize the colors of most chart elements.

To provide a set of color definitions to draw data series elements (bars, pie wedges, and so on), use the colorSet attribute. Set <apex:chart colorSet="..."> to specify the colors to be used for every data series in a chart. Set colorSet on a data series component to specify colors for that series only.

Sample Code:

Visualforce Page:

<apex:page controller="Sample">
    <apex:pageblock title="Members and their Years of experience" >
        <apex:chart height="250" width="350" data="{!pieData}"> 
            <apex:pieSeries tips="true" dataField="data" labelField="name" colorSet="#37241E,#94B3C8,#4D4E24,#BD8025,#816A4A,#F0E68C"/> 
            <apex:legend position="bottom"/>
        </apex:chart>
    </apex:pageblock>
                        
    <apex:pageblock title="Members and their Years of experience" >
        <apex:chart height="250" width="350" data="{!pieData}"> 
            <apex:axis type="Numeric" position="left" fields="data" title="Years of experience"/>    
            <apex:axis type="Category" position="bottom" fields="name" title="Member"/>            
            <apex:barSeries orientation="vertical" axis="left" xField="name" yField="data" colorSet="red"/> 
        </apex:chart>
    </apex:pageblock>   

</apex:page>

Apex Controller:

public with sharing class Sample {  
    public List<PieWedgeData> getPieData() {  
        List<PieWedgeData> data = new List<PieWedgeData>();
        List<Member__c> memb = new List<Member__c>();  
        
        String sql = 'SELECT Name, Year_s_Of_Experience__c FROM Member__c';
        memb = Database.Query(sql);
        for(Member__c temp:memb)
        {           
            data.add(new PieWedgeData(temp.Name,temp.Year_s_Of_Experience__c));
        }
        return data;  
    }  
    
    // Wrapper class  
    public class PieWedgeData 
    {  
        public String name { get; set; }  
        public Decimal data { get; set; }  
        
        public PieWedgeData(String name, Decimal data) 
        {  
            this.name = name;  
            this.data = data;  
        }  
    }  

}

Output:


Cheers!!!

How to automate creation of sandbox in Salesforce?

SandboxInfo

Represents a sandbox.

SandboxInfo enqueues a sandbox for creation or refresh. A create operation on SandboxInfo represents creation of a new sandbox, and an update represents refresh of an existing sandbox.

For every create or update, a SandboxProcess is automatically created and is used for monitoring the sandbox copy process.

This object is available in API version 35.0 and later.

For more information, check the below link

https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_sandboxinfo.htm

Cheers!!!

Lightning Experience Permission

Under System Permissions, select Lightning Experience user.


This permission helps the user to access the Salesforce Lightning Experience. Users with this permission can individually enable or disable this user interface.

Cheers!!!

Lightning Challenge Salesforce

Calling all Salesforce Admins – you’re invited to participate in the first ever Admin #LightningChallenge!

Join us on a 10-day quest to learn more about Lightning and get hands-on experience with some of the cool new features and functionality.

If you successfully complete all 10 challenges, you’ll score yourself an awesome SWAG pack!

You may even be selected to be a special guest on the ButtonClick Admin Podcast.

Check the below for Salesforce Lightning Challenge.

https://admin.salesforce.com/lightningchallenge

Cheers!!!

Shield Platform Encryption for Custom Field in Salesforce


Cheers!!!

Push Notification in Service Cloud Console

1. Go to Apps.


2. Select Console App.

2. Click "Select objects and fields for notifications".


3. Click Edit and select the objects and fields related to it.


4. Choose refresh for list and record detail page.


Output in the List:


Cheers!!!

Which Fields Can I Encrypt using Shield Platform Encryption?

Encrypted Standard Fields
You can encrypt the contents of these standard field types.

On the Account object:
Account Name
Description
Fax
Website
Phone

On the Contact object:
Description
Email
Fax
Home Phone
Mailing Address (Encrypts only Mailing Street and Mailing City)
Mobile
Name (Encrypts First Name, Middle Name, and Last Name)
Other Phone
Phone

On the Case object:
Subject
Description
On Case Comments:
Body (including Internal Comments)
Encrypted Custom Fields

You can encrypt the contents of fields that belong to one these custom field types:
Email
Phone
Text
Text Area
Text Area (Long)
URL
Date
Date/Time

Important
Once a custom field is encrypted, you can’t change the field type. For custom phone and email fields, you also can't change the field format.
You can't use currently or previously encrypted custom fields in custom formula fields or criteria-based sharing rules.
You can't use Schema Builder to create an encrypted custom field.

Some custom fields can’t be encrypted:
Fields that have the Unique or External ID attributes or include these attributes on previously encrypted custom fields
Fields that are used in custom formula fields
Fields on external data objects
Fields that are used in an account contact relation

Cheers!!!

How to find Text (Encrypted) usage in Salesforce?

1. Create a Force.com project in Eclipse.

2. Make sure Objects - Standard and Objects - Custom are added.

3. Search "EncryptedText" from the eclipse by pressing CTRL + H.


Cheers!!!

How to query view setup audit trail using apex in Salesforce?

Starting with Winter'16 the SetupAuditTrail object is exposed to query from Apex.

For fields in the object, check the below link

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_setupaudittrail.htm

Sample SOQL:

List<SetupAuditTrail> listAudits = [SELECT Id, 
Action, 
CreatedBy.Name, 
CreatedDate, 
Display, 
Section 
FROM SetupAuditTrail 
WHERE CreatedBy.Email LIKE '%abc.com%'];

Cheers!!!

How to enable Platform Encryption in Salesforce?

1. Create a Permission Set with "Manage Encryption Keys Permissions Salesforce" permission.


2. Go to "Platform Encryption".


3. Click "Generate Tenant Secret".


4. Use Encrypt Files and Attachments to encrypt attachments and Encrypt Fields to encrypt the fields.


Output:


Cheers!!!

Salesforce IoT Cloud

Now you can harness the power of the Internet of Things and turn the data generated by every one of your customers, partners, devices, and sensors into meaningful action. With IoT Cloud you can process massive quantities of data, build business rules with simple, intuitive tools, and engage proactively with customers in real time.

Salesforce IoT Cloud is powered by Thunder, a scalable event processing engine, designed to ingest and analyze billions of events. Events are the data that comes from the networked devices and objects we talked about above. On top of that, Thunder lets you take personalized actions based on these events, which help your company create more enriching and focused customer experiences.

IoT Cloud’s way of taking in data and triggering actions to create experiences lets your company focus on creating engaging, individualized experiences for all your customers. These might be customized alerts, emails, or messages. Or the actions might be something else within Salesforce, like creating a service ticket, or customizing the information they access through an app.

For videos, check the below link

https://www.salesforce.com/form/conf/iot-demo.jsp?leadcreated=true&chapter=&internal=true&videoId=&__element=pre&DriverCampaignId=70130000000sUVb&player=&redirect=true&FormCampaignId=70130000002Dq4d&playlistId=&d=70130000000Yunl&mcloudHandlingInstructions=&landing_page=%2Fform%2Fdemo%2Fiot-demo.jsp&nurture=

Cheers!!!

Transaction Security in Salesforce

Transaction Security is a feature that monitors Salesforce events in real time and applies actions and notifications based on rules you create. These rules, or policies, are applied against events in your org. (In the earlier example, our policy was to have no more than three active sessions per user.) You create policies for certain event combinations, and specify actions to take when those events occur.

1. Go to Transaction Security.


2. Enable Transaction Security Policies.


3. Create New Custom Transaction Security Policy.

Example:

Below New Custom Transaction Security Policy will send an email if any user logs in from Safari browser.


Apex class generated as part of this is below:

global class AvoidSafariBrowserPolicyCondition implements TxnSecurity.PolicyCondition {
    
    public boolean evaluate(TxnSecurity.Event e) {
        LoginHistory eObj = [SELECT ApiType FROM LoginHistory WHERE Id = :e.data.get('LoginHistoryId')];
        if(eObj.ApiType == 'Safari') {
            return true;
        }        
        return false; 
    }
    
}

Cheers!!!

Steps to be followed for Per User Identity type while setting External Data Source in Salesforce

1. Go to the Profile or the Permission Set used for Files Connect permission.


2. Add the External Data Source to the profile/permission set.

3. Go to Authentication Settings for External Systems and authenticate yourself.


Cheers!!!

Lightning Connect in Salesforce not available

Lightning Connect in Salesforce not available, then contact Salesforce.com support to enable it.

If you are in a Developer Edition, then it will show up.

If you are in a sandbox or in a production instance, you will need to reach out to Salesforce.com support team and purchase lightning connect license in order to use it.

Cheers!!!

How to know Salesforce server instance

1. Go to "https://status.salesforce.com/status".

2. Click "My Domain" in the right top corner.

3. Enter the domain name and click "Search".


For more information, check the below link

https://help.salesforce.com/apex/HTViewSolution?id=000002889&language=en_US

Cheers!!!

How to query history object in Salesforce?

Sample Query:

SELECT Id, OldValue, NewValue FROM AccountHistory

Cheers!!!

Salesforce Interview Questions with Answers Part 38

1. How to avoid other fields that are made as required in the VF page stopping to call an action in the apex using apex:actionSupport?

Use apex:actionRegion tag.

2. How to get records which are modified in last 5 days in Salesforce?

http://www.infallibletechie.com/2016/09/how-to-get-records-which-are-modified.html

3. How to query data which was modified in specific time limit in Salesforce?

http://www.infallibletechie.com/2016/09/how-to-query-data-which-was-modified-in.html

4. Custom meta data types.

http://www.infallibletechie.com/2015/11/custom-metadata-types.html

5. Custom metadata type api name?

Example: Employee_Setting__mdt

6. How to relate one metadata type to another?

Use Metadata Relationship field.

7. Field Manageability in Custom Metadata type.

When it comes to protecting fields on custom metadata types, you have three options.

Upgradeable—The package developer can edit the field after release via package upgrades. Subscriber orgs can’t change the field.
Subscriber Editable—The subscriber org can edit the field after installing the package. Package upgrades don’t override the subscriber’s changes.
Locked After Release—The package developer nor the subscriber can edit the field after the package is released.

8. Lightning Design System

The Design System makes it easy for you to build applications that comply with the new Salesforce Lightning look and feel without reverse engineering the UI as custom CSS.

9. Lightning Out 

Lightning Out is a feature that extends Lightning Apps. It acts as a bridge to surface Lightning Components in any remote web container. This means you can use your Lightning Components inside of an external site (that is, Sharepoint or SAP), in a hybrid app built with the Mobile SDK, or even elsewhere in the App Cloud like on Heroku.

10. What is Expression in Salesforce lightning?

An expression is any set of literal values, variables, sub-expressions, or operators that can be resolved to a single value.

Examples:
{!v.varName}
{!Hello + v.attributeName}

You can’t use JavaScript in expressions in Lightning Components markup.

11. Value Providers in Salesforce lightning.

{!v.attributeName}

v is something called a value provider. Value providers are a way to group, encapsulate, and access related data.

12. Is Lightning Components built on the MVC pattern?

No. There are similarities, to be sure, but it would be more correct to say that Lightning Components is View-Controller-Controller-Model, or perhaps View-Controller-Controller-Database.

13. Why is “controller” doubled up in that pattern name in Lightning? 

Because when interacting with Salesforce, your components will have a server-side controller in addition to the client-side controller we’ve worked with in this unit. This dual controller design is the key difference between Lightning Components and MVC.

14. What’s the distinction between “model” and “database”? 

In traditional MVC, the model is a programmatic abstraction between the underlying data storage (usually a relational database) and the rest of the application. In Lightning Components, there’s no Apex class that directly stands in between @AuraEnabled controller methods and DML operations.

15. How to encode the special characters for correct URL String using apex in Salesforce?

http://www.infallibletechie.com/2016/10/how-to-encode-special-characters-for.html

Cheers!!!

How to report on article type changes in Salesforce?

1. Enable Track Field History for Knowledge Article Type.


2. Click "Set History Tracking".


3. Select the fields to track and click "Save" button.

4. Create a custom report type with Primary Object as "Article Version History".

5. Create a report with the report type created in the previous step.


Cheers!!!

How to encode the special characters for correct URL String using apex in Salesforce?

Sample Code:

String strURL = 'www.test.com?name=#1solutions';
strURL = EncodingUtil.urlEncode(strURL, 'UTF-8');

EncodingUtil.urlEncode() encodes the special characters for correct URL String.

Cheers!!!

Post to This Record missing in Process builder

If "Post to This Record missing in Process builder", enable Feed Tracking for the object.

To know the step by step process for enabling Feed Tracking, check the below link

http://www.infallibletechie.com/2013/10/feed-tracking-in-salesforce.html

Cheers!!!

How to get current year using apex in Salesforce?

Sample Code:

Date dat = System.today();
Integer yr = dat.year();
System.debug('Year is ' + yr);

Cheers!!!

How to deploy Quick Action using ANT tool in Salesforce?

Sample Package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">  
    <types>
<members>LogACall</members><!--Global Action --> <members>Task.TestingAction</members><!--Object Quick Action -->
<name>QuickAction</name>
    </types>
    <version>36.0</version>
</Package>

Cheers!!!

Salesforce Community Cloud Pricing

Salesforce Community Cloud Pricing depends upon the volume of usage.

Check the below link for Community Cloud Pricing in Salesforce

https://www.salesforce.com/products/community-cloud/pricing/

Cheers!!!

How to reset value for sObject variable in controller in Salesforce lightning component?

Sample Code:

component.set("v.newItem",{ 'sobjectType': 'Camping_Item__c',
                    'Name': '',
                    'Quantity__c': 0,
                    'Price__c': 0,
                    'Packed__c': false }/>);

Cheers!!!

How to set default values to variable in Salesforce lightning component?

Sample Code:

Component:

<aura:component >
    <aura:attribute name="newItem" type="Camping_Item__c"
    default="{ 'sobjectType': 'Camping_Item__c',
                    'Price__c': 0,
                    'Quantity__c': 0}"/>
</aura:component>

Cheers!!!

How to declare list of objects in Salesforce lightning Component?

Sample code:

Component:

<aura:component >
    <aura:attribute name="items" type="Account[]"/>
</aura:component>

Cheers!!!

How to use THIS operator in Style in Salesforce Lightning Component?

Sample Code:

Component:

<aura:component >
<H1>Testing Head Tag </H1>
</aura:component>

Style:

.THIS {    
}
H1.THIS {
font-size:18px;
}

Cheers!!!

Salesforce Winter ’17 Release

Send the Right Message with Salesforce Engage in Lightning

Be first, be relevant, be productive – with each and every prospect you speak to. Salesforce Engage provides the exact insights you need at the right moment, empowering you to:

effortlessly build tailored campaigns with marketing-curated content
deliver a phenomenal buyer experience
close deals faster

Sell Smarter with Quotes, Contracts, and Campaign Influence in Lightning Experience

When you enable Quotes in Lightning Experience, reps save time because they have the latest information right inside their quotes and their opportunities. They quickly create and edit quotes and quote line items, and then add the latest quote to an opportunity.

Freshen Up the Look of Leads, Campaigns, and Contracts with Kanban

Kanban in Lightning Experience is simple to access and use. When on a list view, select Kanban from the Display menu to get started. Advancing leads, campaigns, and contracts through the sales cycle is simple and fast. It’s also all drag-and-drop, which means fewer clicks.

Open CTI—Struck by Lightning

Open CTI has been struck by Lightning! Now your support agents can make and receive phone calls through Lightning Experience to close cases faster.

Picture Customer Service on Instagram

Picture this: Now your service team can support customers directly on Instagram. Respond to customers on the channels they prefer—including Instagram.

Boost Field Service into Communities

Show your customers and partners even more love by adding field service data to your web communities. Now customers can schedule appointments and partners can check on work orders right from a community.

Fire Up Customers with Journey Builder in Lightning

Journey Builder is a powerful tool that helps you design and automate marketing plans over multiple communication channels. You can use it to reach your customers at each stage of your campaign.

The new user interface is colorful, easy to read, and features a declarative builder. Drag-and-drop components to quickly place interactions, activities, and flows along your customer path.

Send Email on the Go with the Marketing Cloud Mobile App

Email Studio provides you with the latest and greatest tools for managing your email campaigns. You can schedule and manage your emails all in one nifty tool. Last release, we brought you Email Studio integration with Content Builder, our content management system.

And with Winter ’17, we’re bringing some of your favorite capabilities to your iOS-compatible mobile devices. Now the email send flow you’re accustomed to on your desktop is available on your phone or tablet.

Expand Your Reach with Facebook Advanced Match

Facebook Advanced Match is easy to use. The drag-nd-drop configuration interface lets quickly map source attributes to the corresponding Facebook attributes.

Rebrand with Theme Layouts in Lightning Communities

Rebrand your communities in a flash with theme layouts. Now you can create and apply a custom community theme to match the look and feel of your brand in less time than it takes to say, “Lightning community custom theme layouts.”

Live It Up with Chatter Live Feeds

Chatter has now gone live in Lightning Experience! That means you and your teams can have real-time conversations to accelerate productivity—without having to refresh a browser.

Enjoy Customized Data Views with Wave for Sales 2.0

When it comes to dashboards that help you make important decisions, one-size-fits-all just doesn’t cut it. That’s why we’ve redesigned Sales Wave Analytics to include customized, intuitive, and fast-to-navigate dashboards for every sales user.

Rev Up Your Analytics Engines with the New Wave Dashboard Designer

The generally available version of the Wave dashboard designer, previously known as “flex dashboard designer,” contains significant enhancements that help even novice users quickly and easily build responsive dashboards for different devices.

Uncover Hidden Insights with Trending in Wave

Unearthing data insight shouldn’t be a treasure hunt. And you shouldn’t have to leave Salesforce to do it. That’s why Salesforce Wave now includes trending in wave, the fast and easy way to visualize and share insights into trends hidden in your Salesforce data. No treasure map required.

Reach New Heights with Enhanced Lightning Navigation and Customization

In addition to moving the nav bar, we’ve also added dropdown menus to tabs so you can access recent records and lists with a single click.

We’ve also updated the look and feel of the App Launcher. You no longer need eyes like a hawk to figure out which app you’re working in because the app’s name is right in the nav bar. You can access and swiftly switch between apps by clicking on the active app in the nav bar to open the App Launcher. You can also see all the objects and other items associated with that app.

Another fly feature of the updated app launcher is the AppExchange button up top. Not only does it make it easier to get to AppExchange from anywhere in your org, but watch what happens when you click it.

List views are a foundational part of working in Salesforce. We’re very excited to introduce two big improvements to list views in Winter ’17.

Let’s start with the first enhancement: Lightning Mass Actions. Mass actions are for those of us who don’t have time to perform the same action over and over again for every item in a list view. In other words, mass actions are for all of us.

This release, we’re bringing you two mass actions:
Add members to a campaign
Accept leads from a queue

Speed It Up with Lightning Developer Experience

A productive developer is a happy developer, and productivity is all the rage this winter. With this release you can expect more speed, beauty, and simplicity in your Lightning development.

Cheers!!!

Salesforce CPQ

A native Salesforce app that helps you and your team close deals even faster.

With Salesforce CPQ, you and your sales team can create quotes quickly, with minimal effort and minimal error.

Using Salesforce CPQ, you and your sales team can go from creating a new opportunity to handing the customer a quote in a matter of minutes. A faster, more controlled process means fewer errors, speedier closed deals, more accurate data, and more deals moving through the pipeline.

Salesforce CPQ can help turn your sales team into a lean, mean selling machine.

Salesforce CPQ simplifies product selection so you create quotes correctly the first time. As you’ll see, it does this in a variety of ways.

The business world is ever changing, and dynamic pricing in Salesforce CPQ gives you the flexibility you need to respond to that change.

Cheers!!!

What is the difference between Desk.com and Service Cloud console in Salesforce?

Desk.com is Case-Centric. Solving cases from different channels like Facebook, Twitter, etc. It is an all-in-one platform for responding to customer inquiries across multiple channels and providing online self-service content. Used for solving issues which are not connected to any.

Service Cloud console is Account-Centric. It needs full view of the customer. Used for solving issues which are connected.

Cheers!!!

How to relate one metadata type to another in Salesforce?

Use Metadata Relationship field to relate one metadata type to another in Salesforce.


Cheers!!!