Changes

Jump to: navigation, search

Automate Update data

3 bytes removed, 17:33, 7 March 2018
no edit summary
# Run the command through a command line requesting the generation of an Access TOKEN.
<!--T:12-->Command Syntax: '''Command Syntax: tvcli -cmd get_token_by_password -user <your TaticView user> -password <your TaticView password> [-token_name "<token name>"]'''
<!--T:13-->
-token_name (optional) - The name you want to set to your Access TOKEN. The default name '''TaticView CLI''' will be set if you do not specify a name.
<!--T:14-->Example: '''Example: tvcli -cmd get_token_by_password -user myemail@email.com -password 123466 -token_name "TVCli Server 1" '''
# Run the TVCli TOKEN storing command (<i>store_token</i>), informing the last generated TOKEN;
<!--T:16-->Command Syntax: '''Command Syntax: tvcli -cmd store_token -user <your TaticView user> -token <the token generated on TaticView>'''
<!--T:17-->
-token - The token generated on TaticView.
<!--T:18-->Example: '''Example: tvcli -cmd store_token -user meuemail@email.com -token 9bdr845gh5r4r1vd5d5'''
You can execute the data import automatically using the identifier code through command line if the data file has permission to be updated automatically.
<!--T:24-->Command Syntax: '''Command Syntax: tvcli -cmd import_file -user <your TaticView user> -datamart <data file identification code> -file "<file/spreadsheet address>" [-type "<type>"] [-wait [-notifyshare]] [-nonotifyerror]
'''
-notifyshare (opcional) - Command used to send a notification to the users who own shared dashboards informing that the data update finished successfully. This command only works when used with the <i>-wait</i> command.
<!--T:26-->'''Example:'''
'''tvcli -cmd import_file -user myemail@email.com -datamart 246 -file "\\servidor\taticview\imp\myspreadsheet.xls" '''
'''tvcli -cmd import_file -user myemail@email.com -datamart 246 -file "c:\taticview\imp\spreadsheet.xlsx"'''
You can run the <i>-version</i> command to see which TVCli version is installed on your computer. This command displays the TVCli version on the console and registers it on the TVCli log.
<!--T:37-->Command Syntax: '''Command Syntax: tvcli -version'''

Navigation menu