Saturday, July 8, 2017

Lead/Case assignment rules reassigns the assigned leads/cases from the individual owner to the Queue.

Lead/Case assignment rules reassigns the assigned leads/cases from the individual owner to the Queue.

Assignment rules in Salesforce are very handy when it comes to managing the cases and leads in the incoming queue. However,sometimes it can be tricky to manage the assignments as the assignment rule will be triggered every time the record is edited and the record's check box  “Assign using active assignment rules” is set to true. What happens is that the record already accepted and owned by the specific users is put through the assignment rules and is reassigned to respective queues based on the criteria. 
The workaround is to instruct users to uncheck the box on every edit. Apparently, this is not a user-friendly solution as the users normally forget to address ending up the record to flow through the assignment rules again.



The easiest way to overcome this is to set the “Assign using active assignment rules” check box by default and hide it from the page layout properties. By doing this the user experience of managing the checkbox would be appreciated.

Even with this it does not solved the issue with assignment rules. Though the checkbox is invisible, it is set and thus the record flows through the assignment rules behind the scenes.
The solution is to modify the assignment rules to bypass the record edits. Add the following step in the assignment rules with 1st order so that any record edit would be skipped from reassigning.
The first order assignment criteria must be 'NOT(ISNEW())' and the Assigned to must be 'Same user'. 




Spam emails on from web to lead form? The Web-to-Lead: reCAPTCHA Web Form Validation from Salesforce

Are you tired of spam emails on from web to lead form? The Web-to-Lead: reCAPTCHA Web Form Validation from Salesforce is available with Spring’17 release to Frustrate spammers and improve the quality of your sales teams’ leads. The reCAPTCHA widget requires interested customers to select a checkbox before they can submit an inquiry about your product. Enabling spam filtering lets sales reps focus on actual prospects, and not on spam leads.

In order to implement this on your web to lead form, you have to follow the below steps. The reCAPTCHA widget from Salesforce is compatible with Google reCAPTCHA.

Click on the link below to generate the google reCAPTCHA. In order to proceed, you must have a google account.

you are in the page below. Click on the get reCAPTCHA

Choose the type of reCAPTCHA you would like to embed in the form. Each of them has its own advantage and the user experience. The types are self-explanatory.


I choose the reCAPTCHA V2. And the domain name mytest.com


Click and register.

The end of the wizard generates a Site key and Secret key. This is the KEY pair to be entered in the web-to-lead form in Salesforce.
You can manage these keys with google as long as you have your google account.

In the salesforce org, under the set-up quick find fox, type web-to-lead and navigate to web-to-lead form generation step below. Check the box Enable spam filtering (by default it is checked) Click on the loop up lens add the Key Pair.

The lookup is blank as there are no key pair in my org now. Click on new and add the keys


Fill the keys generated from Google and save it with a nickname.


Back in the web-to-lead form, click to generate the html script.


The HTML generated has the reCAPTCHA incorporated as seen below.




When you embed this code in the website, the below feature would appear on the form and filter your spam bots.




Thursday, June 15, 2017

Salesforce Certified Administrator – Spring ’17 Release Exam

(If you have doubts on the answers, please comment and correct)

Reference : https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/salesforce_release_notes.htm


1.Which two choices are available with email attachment settings? Choose 2 answers
A. Always send files as content delivery links.
B. Always send files as attachments, up to 3MB.
C. Always send files as attachments.
D. Always send files as attachments, up to 5MB.

My answer:A,B

2.Which two features best describe the enhanced Contact search functionality? Choose 2 answers
A. Enter the last name and the Account name, and Contacts that match the search terms are returned.
B. Enter the Account name, and the first and last names of all related Contacts are returned.
C. Enter the first name and the Account name, and Contacts that match the search terms are returned.
D. Enter address, the Account name, and Contacts that match the search terms are returned.

My answer:A,C

3. Universal Containers uses web-to-lead. How can an Administrator help sales representatives focus on legitimate prospects rather than unqualified leads?
A. Use a Lead Source field on Web-to-Lead forms
B. Use the web-to-lead encryption feature.
C. Use the reCAPTCHA widget to filter out spam.
D. Use rich text area (RTA) fields on Web-to-Lead forms.

My answer: C

4. What feature describes the capabilities of email-to-case record assignment to queues?
A. Assigning cases to queues is supported only for Outlook routing addresses.
B. Assigning cases to queues overrides the default case owner.
C. Assigning cases to queues is supported in Lightning only.
D. Assigning cases to queues uses the default case owner

My answer:B

5. Which two Chatter Stream functionalities are available in Lightning Experience?Choose 2 answers

A. Create up to 5 Chatter Streams in Lightning or Classic.
B. Create up to 5 Chatter Streams in Lightning.
C. Create up to 25 entities per Chatter Stream.
D. Create up to 25 Chatter Streams in Lightning.

My answer:B,C

Sunday, January 29, 2017

Subtracting or Adding months to current date in Salesforce formula:

Subtracting or Adding days or years to today’s date in Salesforce formula is fairly easy. However, Subtracting/Adding months to a date is slightly more complicated as months vary in length and the cycle of months’ restart with each year. This means, a valid day in one month (January 31) might not be valid in another month (February 31).

Thus, the formula for subtracting or adding months to Today() has to take care of the following factors:
  • Should return March 1 if the future month is a February and the day is greater than 28. This is the same for both leap and non-leap years.
  • Should return the first day of the next month if the future month is April, June, September, or November and the day is greater than 30.

The formula to Subtract months from Today’s date:

You can replace any number of months to the variable <Number_of_Months> to use this formula.

DATE(
    YEAR(TODAY()) +
    FLOOR((MONTH(TODAY()) - <Number_of_Months>) / 12) -
    IF (MOD(MONTH(TODAY()) - <Number_of_Months>, 12) = 0,
        1,
        0),

    MOD(( MONTH(TODAY()) - <Number_of_Months> - 1), 12) + 1,

    1
) + DAY(TODAY()) - 2

 The formula to Add months to Today’s date:

You can replace any number of months to the variable <Number_of_Months> to use this formula.
DATE(
  YEAR(TODAY()) + FLOOR( ( MONTH ( TODAY() ) + <Number_of_Months> - 1 ) / 12 ),
  MOD( MONTH ( TODAY() ) + <Number_of_Months> - 1 +
    IF( DAY (TODAY()) > CASE( MOD( MONTH(TODAY()) + <Number_of_Months> - 1, 12 ) + 1,
      2, 28,
      4, 30,
      6, 30,
      9, 30,
      11, 30,
      31 ), 1, 0 ), 12 ) + 1,
    IF( DAY(TODAY()) > CASE( MOD( MONTH(TODAY()) + <Number_of_Months> - 1, 12 ) + 1,
      2, 28,
      4, 30,
      6, 30,
      9, 30,
      11, 30,
      31 ),
    1, DAY(TODAY())
  )
)



Lead/Case assignment rules reassigns the assigned leads/cases from the individual owner to the Queue.

Lead/Case assignment rules reassigns the assigned leads/cases from the individual owner to the Queue. Assignment rules in Salesforce a...