• joebnd
  • 0 Points
  • Member since 2009

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
  • 0

What I would like to do is, on a scheduled basis (every 2-3 days?), send a batch of emails out that contain data from Lead records from within my Salesforce database (I have Enterprise edition).  


Each Lead record would have a custom field inside it containing the email address it should be sent to, and I would want some recipients would get data from multiple Leads in a single email (maybe up to 20 max, to one recipient, per day), so I don't have to clog up their inbox with 20 separate emails.  There would be a total of maybe 100-200 recipients per day, at most.  


Is this something I can do using Visualforce mail merge templates?  If not, is there another way I can do it?  Any other suggestions/warnings/considerations?


I would greatly appreciate any advice people can give me on this.



I want to find out if I can do this out of the box, or will need to write some code.



Here's what I want to do:

I use Salesforce to store leads from my website.  Every day I would like to email these leads to specific outside contacts (not Salesforce users).  Different leads will go to different contacts - all based on the contents of a field in Salesforce (a custom field in the Lead record will contain the email address it should be sent to).  In a perfect world, the leads will go out in batches - 6 to this email, 14 to that email, etc.



How should I approach this?  Will I need a third party app or can it be done within Salesforce?  If the latter, do I need to write more code?






I have an online lead generation business and a subscription to Salesforce.com Enterprise Edition. 

I want to find someone who's experienced with Salesforce's API and can help me create some tight, simple PHP code to insert and update Person Accounts in Salesforce.com from the forms on my websites. 

These are pretty simple HTML form, think 10-20 fields max. The architecture is as follows: 
- each Person Account will be uniquely ID'd by a combo of IP address and name, or, if no name is given (which is a possibility), just IP address 
- when a form is submitted, the script needs to: 

1) search Salesforce to see if that combo of IP and name already exists as a Person Account 
2) if it does, then create a closed Opportunity for that Person Account which contains info on the form submitted (the university degree program the person is interested in, the $$ value of that lead, the time/date submitted, etc.) 
3) if it does not, then create the Person Account record first (with IP, source info, name and address etc. from the form), and then create the Opportunity per #2 above 

I use a handful of the out-of-the-box fields for Person Account objects, and a bunch of custom ones.  The code will need some rudimentary error handling etc. as well.


This should be very easy money for someone who knows PHP and the Force.com API.  I have to believe there are people out there who have created this exact kind of setup before.


I know a little bit of PHP and a very little bit about the API, and this is an important enough piece of code that I would rather just pay someone and make sure it's done right. 

Please respond with details of your experience with both PHP and the Force.com API. 


  • April 23, 2009
  • Like
  • 0