TM1 and email (using SQL server)
Posted: Fri Nov 07, 2014 7:36 pm
First post, hopefully useful to some of you.
We have a TM1 Nightly Refresh that finishes at a certain time in the morning. But we do not have any notification from TM1 indicating the process finished and since we have offices in the EST and PST time zones we need this process to be done before a certain time.
We were able to implement a trick to make this work but it requires access to a SQL server that has mail set up.
Basically what we do is:
1. We created a TI process with an ODBC connection to a SQL server.
2. The TI process inserts a "getdate()" value into a specifically created table (with one column for datetime).
3. At the end of the Nightly refresh chore we fire of the TI process.
4. The table will get a new date time inserted.
5. We have set up a trigger (on insert) that monitors the field and once a record is inserted it fires of an email.
6. The email takes the date and time from the field and formats this in to html to make the email more user friendly.
The users receiving the emails now know when the process is finished and can then access TM1 knowing they are working with the latest data.
I'm sure it can be enhanced to receive more than just a date time record but haven't had a change to take a look.
If you are interested I can provide more details.
Thanks,
We have a TM1 Nightly Refresh that finishes at a certain time in the morning. But we do not have any notification from TM1 indicating the process finished and since we have offices in the EST and PST time zones we need this process to be done before a certain time.
We were able to implement a trick to make this work but it requires access to a SQL server that has mail set up.
Basically what we do is:
1. We created a TI process with an ODBC connection to a SQL server.
2. The TI process inserts a "getdate()" value into a specifically created table (with one column for datetime).
3. At the end of the Nightly refresh chore we fire of the TI process.
4. The table will get a new date time inserted.
5. We have set up a trigger (on insert) that monitors the field and once a record is inserted it fires of an email.
6. The email takes the date and time from the field and formats this in to html to make the email more user friendly.
The users receiving the emails now know when the process is finished and can then access TM1 knowing they are working with the latest data.
I'm sure it can be enhanced to receive more than just a date time record but haven't had a change to take a look.
If you are interested I can provide more details.
Thanks,