|
|
Line 1: |
Line 1: |
− | '''tvcli -cmd import_file -user meuemail@email.com -datamart 246 -file "c:\taticview\imp\planilha.xlsx" -wait -notifyshare''' | + | '''@ECHO OFF''' |
− | '''if errorlevel <> 0'''
| + | '''call tvcli -cmd import_file -user jonathan@sadig.com -file "C:\Users\jonathan.SADIG\Documents\TaticView\Import Files\sales.xlsx" -datamart 674 -wait |
− | '''Error notification by email'''
| + | '''if %errorlevel% == 0 ( |
− | '''fi'''
| + | '''echo "SALES updated successfully!" |
| + | ''') else ( |
| + | '''echo "Problems updating SALES!" |
| + | ''') |
| + | '''call tvcli -cmd import_file -user jonathan@sadig.com -file "C:\Users\jonathan.Sadig\Documents\TaticView\Import Files\hr.xlsx" -datamart 673 -wait |
| + | '''if %errorlevel% == 0 ( |
| + | '''echo "HR updated successfully!" |
| + | ''') else ( |
| + | '''echo "Problems updating HR!" |
| + | ''')''' |
Revision as of 17:34, 21 September 2017
@ECHO OFF
call tvcli -cmd import_file -user jonathan@sadig.com -file "C:\Users\jonathan.SADIG\Documents\TaticView\Import Files\sales.xlsx" -datamart 674 -wait
if %errorlevel% == 0 (
echo "SALES updated successfully!"
) else (
echo "Problems updating SALES!"
)
call tvcli -cmd import_file -user jonathan@sadig.com -file "C:\Users\jonathan.Sadig\Documents\TaticView\Import Files\hr.xlsx" -datamart 673 -wait
if %errorlevel% == 0 (
echo "HR updated successfully!"
) else (
echo "Problems updating HR!"
)