Publishing Salesforce.com to an RSS feed (the easy way)
PLEASE NOTE THAT THIS BLOG HAS MOVED TO A NEW LOCATION. VISIT HTTP://SFDC.ARROWPOINTE.COM TO VIEW THIS SITE AT ITS NEW LOCATION.
I posted a while back about how someone published Salesforce.com to an RSS feed. I didn't receive any details about how this was done.
I decided to give this a try on my own using tools that I was familiar with and without having to write any code. I accomplished this using Blogger to create my blog and Salesforce.com workflow to perform the publishing to the blog. It took about 1 hour including testing time. I did the example with Leads, but this example could work with any object that supports workflow.
All I did was:
1. Created a new blog at Blogger.com. Any blog tool will work as long as it supports posting to the blog via email (most, if not all, do).
2. This blog could be hosted on blogspot.com (Blogger's hosting site), but then it is publically viewable on the Internet. You can help your cause by not putting in the blogspot listings and not pinging weblogs, but it's still out there. Instead, I published it to a folder on my web site and added password protection to access that folder. I created a "blogger" FTP user on my site that has direct access to that folder and nothing else on my site.
3. Create a workflow in Salesforce.com based on the Lead object. For testing purposes, I set it up to only trigger on new leads and had criteria where the Create Date > 1/1/2000. Thus, it triggered for every new lead. The workflow alert I setup sent an email to the posting email address of the blog. Blogs support HTML formatted emails, so you can create a nice looking email template to post the information to the blog and make it look nice. Be sure to include a link to the record in the email template so a blog reader and go right to that record in Salesforce.com is necessary.
4. The blog posting was published immediately. After adding a lead, I immediately refreshed the blog page in my browser and the data was already there.
5. For added convenience, I added the blog RSS feed to my Newsgator Online account and was able to see the postings from there.
I was able to do all of this in ~ 1 hour and everything I used is free and required no fancy code. It does take knowledge (if you do step #2) about setting up a folder on your web site, password protecting it and adding an FTP user to access that folder as their root. However, with my ISP, I can do all of that with point-and-click, so it was a piece of cake.
Personally, I don't see much use in publishing leads in this manner because people should be encouraged to use Salesforce.com instead of another tool. However, this concept could be powerful in other capacities. For example:
- Run a script to pull statistics out of Salesforce.com and publish the results to the blog for executives to view. This only makes sense if your organization is particularly frugal about licenses. Option 1 would be to use Dashboards for this, but if people don't have access, this could be a good way.
- Run a script to post to your CRM Project Blog about the success of the project thus far.
- When running an integration, use a blog to post the integration run summary. This posting could then have links to the detailed log files on the network. Use multiple blogs too. Perhaps have 1 for the standard summary and 1 for high alerts.
- Use it as an escalation path for cases when the escalation team is not yet online with Salesforce.com. This would be an alternative to emailing people directly or using a mailing list.

3 Comments:
Nicely done! I wrote the initial post you linked to talking about pushing leads from salesforce.com through RSS, and by coincidence have been working on cleaning up the code and making it publicly available as an online service. I love the fact that salesforce is so flexible you can accomplish the same task in many different ways.
If anyone would like to help me the leads-feed service, please let me know at charlie.wood@spanningpartners.com.
Brilliant! We're reading at Salesforce, and would love to chat with whoever this is. Please contact me at bjasik at salesforce.com
Great post. This is the perfect example of fixing a complex problem with a creative solution.
Post a Comment
<< Home