Open main menu

TaticView β

Changes

Automate Update data

143 bytes added, 17:59, 16 July 2021
no edit summary
)
==== BAT (Script ) example ==== <!--T:31-->Bellow we show you a script sample that imports two files to different DataMarts (ids 674 and 673) and test the ERRORLEVEL environment variable to evaluate if the data update was done successfully.
<!--T:32-->
'''@ECHO OFF''' '''call C:\TaticView\tvcli -cmd import_file -user jonathanmy@sadigemail.com -file "C:\Users\jonathan\Documents\TaticView\Import Files\sales.xlsx" -datamart 674 -wait
'''if %errorlevel% == 0 (
'''echo SALES updated successfully!
'''echo Problems updating SALES!
''')
'''call C:\TaticView\tvcli -cmd import_file -user jonathanmy@sadigemail.com -file "C:\Users\jonathan\Documents\TaticView\Import Files\rhhr.xlsx" -datamart 673 -wait
'''if %errorlevel% == 0 (
'''echo RH HR updated successfully!
''') else (
'''echo Problems updating RHHR!
''')'''