Link to home
Start Free TrialLog in
Avatar of MrDerp
MrDerpFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Email Crystal Report To Recipient In Database

I am currently working on a solution that will allow all outstanding purchase orders on our ERP system to be automatically emailed to their associated supplier. My plan is to utilise Crystal Reports and InfoView for this.

To make this as easy to use - and dynamic as possible - I'd like to use the email addresses stored in our ERP system. However, I'm unaware of any way of setting the recipient's email address to one that is stored in a database. So, question 1 - does anyone know of a way of doing this? Would I need to look at a VB solution, perhaps?

Secondly, when these orders have been successfully emailed, I need to update a field in our database so, when the report is run again, it doesn't resend the same orders. Is it possible to run an update query on a database upon successful (note the importance of "successful") run?

I'm a little bit stuck as to the best way forward. I could always create one report per supplier, but I'd prefer the system to be more dynamic.

Any help would be greatly appreciated!
Avatar of spangdelta
spangdelta
Flag of United States of America image

I've done something similar to this, and I chose VB to generate the Crystal report, primarily because of the database updating requirement.  There was just no way to do it in Crystal alone.

You need to read up on SAP's licensing in the area of automated report distribution in Crystal.  I know that Business Objects had a restriction on how many email recipients could receive an automatically-generated Crystal report (I think it was around 50...) before you needed their 'Distribution License - a 6-figure item !
ASKER CERTIFIED SOLUTION
Avatar of dougvarga
dougvarga
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Ido Millet
Ido Millet
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MrDerp

ASKER

Many thanks for your responses to this. I've got to say, Visual CUT is a fantastic piece of software and it looks like it is the perfect solution to my problem.

With regards to the second part of my question, the outer join on the table I want to update will work (and I guess I could run a little script to update the printed status on the original table with whatever has successfully run and been stored in the log processing table).

My only outstanding issue now is that sometimes a user may change an order and want to resubmit it. As the database would indicate that it has already been sent, Visual CUT would not retransmit it. Any recommendations? I'm thinking of just giving users a little interface that will allow users to mark an order for resubmission - this would delete the record from the log and would appear like it had never been sent.
There are several options to handle this.  The cleanest one would be an Update trigger in the DBMS. There are also ways to accomplish this with Visual CUT.  However, this is no longer a Crystal question, so consider closing this thread.