• Maxwell Lessard
  • 0 Points
  • Member since 2018
  • Salesforce Associate
  • InterSystems Corporation

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 2

I'm trying to get a RSS feed from Google News based on the name of the Account on the page layout for accounts.
I found this solution, which requires manually generating and entering a URL for each account, but my org has hundereds and hundereds of accounts, so this isn't feasable. 
What I tried was running a visualforce page with the following code:
<apex:page standardController="Account">
	    <apex:includeScript value="{!$Resource.testfeed}"/>

the static resource "testfeed" contains the following javascript generated via this website:
<script language="JavaScript" src="http://feed2js.org//feed2js.php?src=https%3A%2F%2Fnews.google.com%2Fnews%2Frss%2Fsearch%2Fsection%2Fq%2F{!Account.Name}%2F{!Account.Name}%3Fhl%3Den%26gl%3DUS%26ned%3Dus&chan=y&num=5&au=y&targ=y&utf=y"  charset="UTF-8" type="text/javascript"></script>

<a href="http://feed2js.org//feed2js.php?src=https%3A%2F%2Fnews.google.com%2Fnews%2Frss%2Fsearch%2Fsection%2Fq%2F{!Account.Name}%2F{!Account.Name}%3Fhl%3Den%26gl%3DUS%26ned%3Dus&chan=y&num=5&au=y&targ=y&utf=y&html=y">View RSS feed</a>

But the output is just a blank page. i also tried this with a static value incase the "{!Account.Name}" merge was creating the issue, but it's still just a blank page.

Any insites?

Thanks in advance.
I'm trying to create a formula field that will look at a person's birthdate and check an "Under 18" checkbox. Then, I need to create another formula or workflow that will uncheck it once they turn 18 and check an "18 and over" checkbox OR will just check the "18 and over" checkbox for those people that are over 18. I'm not the greatest with anything math-related and could use some help. Thank you in advance!