function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
valMotovalMoto 

Display RSS feed on an object

I am trying to get an RSS feed/news to display on an Account object. Is this possible to display the google news based on the Account name?

 

Ideally I would like to add this to different standard and custom objects.

 

I could probably just include the link for example:

function getRecordIds(keyPrefix) { return [] }__sfdcSessionId = '00D70000000J4QN!AQ8AQHm3ysKom5WXr_Jj0fBZ7G2_H3kVmy7i4gkpgvVDnWSexr5Q8JpTqHED2RqTlbbmR08bmZHybezZBSRlueXlLzot46U9'http://news.google.com/news?pz=1&ned=us&hl=en&q=salesforces&output=rss

 

but i would prefer to display the actual news on my page layout.

 

thanks!

Best Answer chosen by Admin (Salesforce Developers) 
valMotovalMoto

I finally solved my issue by using a few tools provided by Google.

 

1. Create a Google alert selecting the delivery method as "Feed" instead of "Email"

 

2. Create a custom text field for the Account object: RssUrl

 

2. Created a Visualforce page that contains the code created by their Dynamic Feed API

http://www.google.com/uds/solutions/dynamicfeed/index.html

You can use the default Account controller for the VisualForce page

 

 

3. In the autogenerated code from Google, locate the javascript method "LoadDynamicFeedControl" and replace the Title to be {!Account.Name} and the URL to be the value of the field created in step2,  {!Account.RssUrl__c} 

 

var feeds = [
{title: '{!Account.Name}',
url: '{!Account.RssUrl__c}'
}];
 

4. Add this Visualforce page to the page layout of your Account object

 

5. Edit an Account, and paste the Google alert RSS XML into this field and save.

 

You will now have RSS feed on your Account object!