Open main menu

TaticView β

Changes

Automate Update data/pt-br

214 bytes removed, 18:56, 22 September 2017
no edit summary
== '''Data update automation on Automação de atualizações de dados no TaticView''' ==
Você pode através desse processo automatizar as atualizações das informações dos seus Arquivos de Dados.
Primeiramente baixe o instaladorFirst download the installer:
* <u>[http://wiki.taticview.com/taticfiles/tvcli-windows-installer.exe Windows]</u>
'''Via Through TacticView interface do TaticView'''# Identificar-se no Identify yourself on TaticView e acessar o and access the '''Minha ContaMy account''' botão button '''ACCESS TOKENS DE ACESSO''';# Em On [[File:identificacao-novo-token+pren-BRUS.png]] informe um nome para identificar o enter a name to identify the ACCESS TOKEN DE ACESSO na lista e clique em on the list and then click on '''Gerar novo Generate new TOKEN'''.# Um An ACCESS TOKEN DE ACESSO será gerado will be generated [[File:generated-token+pren-BRUS.png]]# Executar o TVCli informando o Run TVcli informing the generated ACCESS TOKEN DE ACESSO gerado
'''Sintaxe: tvcli -cmd store_token -user <usuário> -token <token gerado>'''
=== Atualizando de forma automatizada ===
Somente é possível automatizar atualizações de arquivos de dados já criados no You can only automate the update of data sources that have been already created on TaticView, portanto é necessário pelo menos uma importação so you are going to need at least one manual para criar a estrutura necessáriaimport to create the necessary structure.Then you must grant the automatic import to the desired data file.To do this click on the imported file (On the TaticView interface), select '''Properties''', and check the checkbox '''Automatic Importation''', which displays the identifier code of your data file, as you can see in the example below:
Depois é necessário liberar a atualização automática para o Arquivo de Dados desejado[[File:datamart-dropdown+en-US.Para isso clique sobre o arquivo importado (na interface do TaticView), selecionar '''Propriedades''', e marcar o checkbox '''Importação automática''', o que exibirá o código identificador de seu arquivo de dados, como no exemplo abaixo:png]]
[[File:datamart-dropdown+pr-BR.png]]
 [[File:automatic-importation+pren-BRUS.png]]
Estando o arquivo de dados previamente importado, liberado para atualização automática e você possuir o seu código identificador, será possível executar a importação por linha de comando.
'''SintaxeSyntax: tvcli -cmd import_file -user <usuáriouser name> -datamart <identificadoridentifier> -file "<arquivofile/planilhaspreadsheet>" [-type <tipotype>] [-wait -[notifyshare]] [-nonotifyerror] '''
-cmd - import_file - faz upload do arquivo de dados e coloca na fila de atualizaçãouploads the data file and places it in the import queue -user - usuário TaticView user -datamart - identificador do arquivo de dados obtido na opção propriedades do Arquivo de Dados na Interfaceidentifier of the data file obtained in the Data file properties at the interface. -file - arquivo de dados Texto Text data file (CSV) ou planilha or spreadsheet (XLSX,XLS) que será importadoto be imported. -type (opcional) - clear_and_add - Exclui todos os dados do Arquivo de Dados do Deletes all data from TaticView e importa os novos dados Data File and imports the new data. (default) append - Adiciona os novos dados ao final do Arquivo de Dados do Adds the new data at the end of the TaticViewData File. É necessário ter cuidado para não duplicar dadosIt is necessary to be careful not to duplicate any data. -wait (opcional) - aguarda o final da importaçãowaits for the end of the import. Necessário para testar It is needed to test '''Output Status de Saída''' -nonotifyerror (opcional) - não notifica o usuário caso ocorra um erro durante o processodoes not notify the user if an error occurs during the process -notifyshare (opcional) - envia notificação de atualização de dados para os usuários que tem painéis compartilhados desse arquivo de dados quando a importação termina sem errossends data update notification to users who have these data file dashboards shared when the importing process ends without errors. Funciona somente em conjunto com "Only works with -wait".
'''ExemplosExample:''' '''tvcli -cmd import_file -user meuemailmyemail@email.com -datamart 246 -file "c:\taticview\imp\planilhaspreadsheet.xlsx"''' '''tvcli -cmd import_file -user meuemailmyemail@email.com -datamart 246 -file "c:\taticview\imp\arquivofile.csv" -wait -notifyshare''' '''tvcli -cmd import_file -user meuemailmyemail@email.com -datamart 246 -file "c:\taticview\imp\planilhaspreadsheet.xlsx" -wait''' '''tvcli -cmd import_file -user meuemailmyemail@email.com -datamart 246 -file "c:\taticview\imp\planilhaspreadsheet.xlsx" -type clear_and_add''' '''tvcli -cmd import_file -user meuemailmyemail@email.com -datamart 246 -file "c:\taticview\imp\planilhaspreadsheet.xlsx" -type append''' '''tvcli -cmd import_file -user meuemailmyemail@email.com -datamart 246 -file "c:\taticview\imp\planilhaspreadsheet.xlsx" -type append -nonotifyerror'''
'''8 - Erro'''
Uma notificação será enviada para o usuário caso ocorra erro na atualizaçãoA notification is sent to the user if an error occurs during the import process.Uma A log com os detalhes das execuções será gerada no diretório de configurações do usuário with the details of the executions will be generated in the configuration directory of the user (exemploexample: C:\UsuáriosUsers \<usuáriouser>\AppData\Local\TVcli\Logs).
'''@ECHO OFF'''
'''call tvcli -cmd import_file -user jonathan@sadig.com -file "C:\Users\jonathan.SADIG\Documents\TaticView\Arquivos ImportacaoImport Files\vendassales.xlsx" -datamart 674 -wait
'''if %errorlevel% == 0 (
'''echo "VENDAS atualizado com sucessoSALES updated successfully!"
''') else (
'''echo "Problemas na atualizacao do VENDASProblems updating SALES!"
''')
'''call tvcli -cmd import_file -user jonathan@sadig.com -file "C:\Users\jonathan.Sadig\Documents\TaticView\Arquivos ImportacaoImport Files\rhhr.xlsx" -datamart 673 -wait
'''if %errorlevel% == 0 (
'''echo "RH atualizado com sucessoHR updated successfully!"
''') else (
'''echo "Problemas na atualizacao do RHProblems updating HR!"
''')'''
<span style="color: red;">'''Importante'''</span>
A versão The free dá direito a automação da atualização de um Arquivo de Dadosversion grants you automation import from only one data source. Para automatizar atualizações de mais arquivos de dados será necessário configurar o Recurso de You need to configure the feature '''Atualização automática de dadosautomatic data update''' na sua Assinaturain your subscription to automate the imports of more data sources.