Providing a Google News search for an account using a custom link

When dealing with customers it is always useful for the users of Salesforce CRM to be aware of the latest news related to the customer. News information related to customers can be retrieved from sources such as Google News and is useful for all users whether from the sales team, marketing, or perhaps the finance team.

In this recipe we will provide a link, displayed on an Account Detail page, that when clicked opens a new window showing a Google News result for the name of the account.

How to do it...

Carry out the following steps to create a Google News search for an account using a custom link:

  1. Navigate to the custom web tab setup page by going to Your Name | Setup | Customize | Accounts | Buttons and Links. Scroll down to the Custom Buttons and Links section as shown in the following screenshot:
    How to do it...
  2. Click on New, as shown in the preceding screenshot.
  3. Enter Account News in the Label field.
  4. Accept the default Account_News in the Name field.
  5. Choose the option of Detail Page Link in the Display Type options choices.
  6. Select the value Display in new window in the Behavior picklist.
  7. Select the value URL in the Content Source picklist.
  8. In the URL textbox, paste the following code (as shown in the screenshot further below):
    http://news.google.com/news?hl=en&hdlOnly=1&q={!Account.Name}
    How to do it...
  9. Click on Save.

    Note

    Upon saving, we are reminded that the custom link will not be displayed to users until you add it to the page layout (as shown in the following screenshot).

    How to do it...
  10. Click on OK.
  11. We can now add the custom link to the page layout within the account page layout setup page by going to Your Name | Setup | Customize | Accounts | Page Layouts.
  12. Determine which Account Page Layout to include the Google News search custom link on and click on Edit.
    How to do it...

    Here we are editing the home page layout named Account Layout (as shown in the preceding screenshot).

  13. Click on Edit.

    We are now presented with the Account Layout edit page.

  14. Click on the Custom Links text at the top-left section of the page as shown in the following screenshot:
    How to do it...
  15. Locate the Account News custom link and drag it to the Custom Links section (as shown in the preceding screenshot).
  16. Click on Save.

How it works...

The Account News custom link now appears in the Custom Links area of the main Account Detail page (before the related lists) for each Account record, as shown in the following screenshot:

How it works...

When clicking the link, the name of the account is passed to the Google News search page which is then opened in a new window as shown in the following screenshot:

How it works...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.251.70