Hello!
I was wondering whether I could use the Integrator and groovy to accomplish the following:
1. connect to a MS SQL Database (ok, I managed that)
2. extract a table containing part numbers with erroneous accounting details (accomplished through SQL)
3. a)in case the extract has values send an email with those values (here I am stuck)
b)in case the extract returns nothing: do nothing
I know this is not what the System is designed for, but I like how it handles the extracts and transforms and it would be easy to schedule the task.
My idea was to include the mailing function into the groovy script of a field transform. But it does not seem to work. I can send emails if I create a Job that executes a groovy script, but I think I can't get to the extracted data that way. And including the same mail script into the goovy function of a field transform does nothing.
Does anyone have an idea how I could accomplish the sending of data from a Field Transform?
I hope I managed to explain what I would like to do. If not, please let me know and I will give it another try
Thanks!
I was wondering whether I could use the Integrator and groovy to accomplish the following:
1. connect to a MS SQL Database (ok, I managed that)
2. extract a table containing part numbers with erroneous accounting details (accomplished through SQL)
3. a)in case the extract has values send an email with those values (here I am stuck)
b)in case the extract returns nothing: do nothing
I know this is not what the System is designed for, but I like how it handles the extracts and transforms and it would be easy to schedule the task.
My idea was to include the mailing function into the groovy script of a field transform. But it does not seem to work. I can send emails if I create a Job that executes a groovy script, but I think I can't get to the extracted data that way. And including the same mail script into the goovy function of a field transform does nothing.
Does anyone have an idea how I could accomplish the sending of data from a Field Transform?
I hope I managed to explain what I would like to do. If not, please let me know and I will give it another try

Thanks!