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!!!