Monday, August 31, 2009

Script: SugarCRM Click-Thru Target to Lead in Email Campaign

A quick post here about a little script I wrote for SugarCRM.

Update: I forgot to mention that I am working with SugarCRM version 5.2.0i here. Results may vary (read "not work") with other versions.

We were having trouble with the workflow process of running an Email Campaign in SugarCRM. Namely, we had like 100 some clickthru's in an email campaign, and I really wanted to just click a button to make all of those clickthru targets become leads. I would have even settled for the click-thru list being clickable links and doing it one-by-one (well, i would have had the marketing guys do that), but even that is not possible. They are not clickable links that redirect you to the target details view - instead, they are just a static list with only the related hyperlink being clickable.

Details of the problem here:

So, I wrote a php script to solve our dilemma:

Be sure to change the Database user/password/name to match your configuration, and to change the
$campaign_id and $user_id
variables at the top of the file.


ipad case said...

YES! That is extremely helpful , actually is really detailed. i will be using this as well. Thanks for sharing !

Abdur Razzaq said...
This comment has been removed by a blog administrator.
Simon Earl said...

Hi Adam,
Thanks for that, it seems our organisation is trying to do exactly what yours thank's very much for the script, we're using 6.5.18 so I'll adapt the script if it needs it.....but what I'm wondering about is....are we both doing something SugarCRM is not designed to do ?
For me, (and presumably you as well) the business logic works....I'm just surprised that nobody else seems to have this issue ?
Again, thanks for the detailed post

Helmut Dempewolf said...
This comment has been removed by a blog administrator.

Disqus for A Nofsinger's Blog