This is a detailed document for using the features of AppSuite.
The tools described here can be downloaded from the official desknet's NEO page and used.
"C:\Program Files\desknet's NEO\bin\appsimport.exe" -conf "C:\tmp\conf.txt" -access_key sampleAccessKey -app_alias sample -f "C:\tmp\import.csv" -l "C:\tmp\import.log" -char_code sjis -delimiter comma -title_except on -import_type update -fields_file "C:\tmp\import.json" -match_with_title off -key_field_name "Data ID" -exec_user login -error_stop on -attach_dir "C:\tmp\attach"
|
[Boot argument] | The specified value | Description |
-conf | [Full path of connection setting file] |
Be sure to specify it. Specify the connection setting file that describes desknet's NEO to be imported. For how to write a connection setting file, see Connection Setting |
-access_key | [Access key] | Be sure to specify it. Specifies the access key of the user who runs the import tool. |
-app_alias | [App Identifier] |
Be sure to specify it. Refer to the [App Settings > Option Feature > API Settings] of the app to be imported and specify the app identifier. To run, the running user must have administrative privileges on the application. |
-f | [CSV file to be imported] |
Be sure to specify it. "Details of Import File" is described on the screen for how to write a CSV file. See “Details of Import File” in the [AppSuite> Other functions> Import from Excel/CSV file] dialog. |
-l | [Log file full path] |
The line that failed to be imported and its cause, the number of successful imports and the number of failed imports will be output to the specified log file.
When error occured, its cause and details will be outputed. If this boot argument is not specified, no log file will be output. |
-char_code | [ sjis | utf8n | utf8 ] |
Specify the character code of the CSV file. If you do not specify this startup argument, describe the CSV file in Shift JIS. [sjis] : Shift JIS (only Japanese and alphanumeric characters can be entered) [utf8n]: UTF-8 without BOM (Japanese, non-alphanumeric characters can be entered) [utf8] : UTF-8 with BOM (Japanese, non-alphanumeric characters can be entered) |
-delimiter | [comma | tab] |
Specify the delimiter for the CSV file. If you do not specify this boot argument, separate the values with commas. [comma]: Comma [tab]: Tab |
-title_except | [on | off] |
Specify whether the title is on the first line of the CSV file. If you do not specify this boot argument, import with CSV file title. [on]: With title [off]: No title |
-import_type | [update | delete] |
Specify the processing to be executed. If this boot argument is not specified, data will be added or changed. [update]: Add/update data [delete]: Delete data * To update or delete the data, it is necessary to specify the "part to be verified" with "-key_field_name".
|
-fields_file | [Full path of the import destination part setting file] |
Specify the full path of the plug-in setting file that describes the plug-in to be imported. If this boot argument is not specified, the import destination part will be automatically set according to the CSV file title. For how to write a connection setting file, see Parts setting * If "field_name" in the format is left blank, that column will not be imported.
* Please save the character code as UTF-8 without BOM.
* Do not use the "Notepad" that comes with Windows, as it is saved as UTF-8 with a BOM. |
-match_with_title | [on | off] |
When there is a title in the first line of the CSV file, the import destination part is automatically set from the title. If this boot argument is not specified, if "-fields_file" is specified, import will be performed according to the import destination part setting file, and if "-fields_file" is not specified, the import destination part will be automatically set from the title and imported. to hold. [on]: Automatically set the import destination parts from the title [off]: Do not set import destination parts from title |
-key_field_name | [Parts to be verified] |
When changing or deleting data, specify the parts to be verified. If you do not specify this boot argument, no matching is done. |
-exec_user | [login | super] |
Specify [super] to be changed to following specifications.
|
-error_stop | [on | off] |
Specifies whether to continue the import when an error occurs during the import. If you do not specify this startup argument, the import is aborted when an error occurs. [on]: Stop import when an error occurs [off]: Continue import to the end when an error occurs |
-attach_dir | [Attachment file directory path] |
When importing an attachment, specify the path of the directory that contains the file you want to import. If you do not specify this boot argument, you cannot import the attachment. |
Attachment
"sample.txt" "subdir/sample.png" "file1.jpg file2.jpg" |
"C:\Program Files\desknet's NEO\bin\appsexport.exe" -conf "C:\tmp\conf.txt" -access_key sampleAccessKey -app_alias sample -f "C:\tmp\export.csv" -l "C:\tmp\export.log" -char_code sjis -delimiter comma -title_header on -user id -group id -fields_file "C:\tmp\export.json" -filter_file "C:\tmp\filter.json"
|
[Boot argument] | The specified value | Description |
-conf | [Full path of connection setting file] |
Be sure to specify it. Specify the connection setting file that describes desknet's NEO to be exported. For how to write a connection setting file, see Connection Setting |
-access_key | [Access key] | Be sure to specify it. Specifies the access key of the user who runs the export tool. |
-app_alias | [App Identifier] |
Be sure to specify it. Refer to the [App Settings > Option Feature > API Settings] of the app to be exported and specify the app identifier. To run, the running user must have administrative privileges on the application. |
-f | [CSV file output destination] | Be sure to specify it. The exported CSV file will be output here. |
-l | [Log file full path] |
When error occured, its cause and details will be outputed to the specified log file. If this boot argument is not specified or no error occured, no log file will be output. |
-char_code | [ sjis | utf8n | utf8 ] |
Specify the character code of the CSV file. If this startup argument is not specified, the CSV file will be output in Shift JIS. [sjis] : Shift JIS (only Japanese and alphanumeric characters can be entered) [utf8n]: UTF-8 without BOM (Japanese, non-alphanumeric characters can be entered) [utf8] : UTF-8 with BOM (Japanese, non-alphanumeric characters can be entered) |
-delimiter | [comma | tab] |
Specify the delimiter for the CSV file. If you do not specify this startup argument, the values are output separated by commas. [comma]: Comma [tab]: Tab |
-group | [id | org_code | name] |
Specify the output format of group selection. If this startup argument is not specified, it will be output with the group system ID. [id]: Group system ID (Example: *246) [org_code]: Internal organization code (Example: @NEO0001) [name]: Group name (example: Information Systems Department |
-user | [id | login | name] |
Specify the output format for Select User, [Added By], and [Updated By]. If this boot argument is not specified, the user system ID will be output. [id]: User's "System ID (Example: *246) [login]: Login ID (Example: @YAMADA0001) [name]: Name (example: Taro Yamada) |
-title_header | [on | off] |
Specify whether to output the title in the first line of the CSV file. If this boot argument is not specified, the CSV file title will be output. [on]: With title [off]: No title |
-fields_file | [Full path of settings file for export target] |
Specify the full path of the plug-in setting file that describes the plug-in to be exported. If this startup argument is not specified, the values of all parts will be output. For how to write a component setting file, see Parts setting * If "field_name" in the format is left blank, the value in that column will be output as blank.
* Please save the character code as UTF-8 without BOM.
* Do not use the "Notepad" that comes with Windows, as it is saved as UTF-8 with a BOM. |
-filter_file | [Full path of narrowing condition file] |
Specify the full path of the file that describes the narrowing conditions. If this startup argument is not specified, all items will be output. For details on how to write a narrowing condition file, refer to [Narrowing condition file] |
{ "filter": { "item": [ {"field_id": "101", "operator": ">=", "value": "1"}, {"field_id": "102", "operator": "is_null"}, {"field_id": "103", "operator": "contains", "value": "1\t2 ", "type":" id"} ] } } |
Key | The specified value | Description |
filter | [Search condition array] | Please see"Refinement conditions". |