Product: | Microsiga Protheus |
Versions: | 12 |
Step by Step: | From LIB version 20180413, the UPDDISTR has option to be run via job. To run it this way, follow these steps:
Code Block [UPDJOB] MAIN=UPDDISTR ENVIRONMENT=P12 • In the section [OnStart], add line Jobs= to the Job that has just been created: Block Code [ONSTART] Jobs=UPDJOB RefreshRate=900
Code Block {
"password":"senha",
"simulacao":false,
"localizacao":"BRA",
"sixexclusive":true,
"empresas":["99","01","03"],
"logprocess":false,
"logatualizacao":true,
"logwarning":false,
"loginclusao":false,
"logcritical":true,
"updstop":false,
"oktoall":true,
"deletebkp":false,
"keeplog":false
}
Where: password = Password of admin user simulacao = Enables simulation mode, where no modification is made localizacao = Country that must be used sixexclusive = Use file of indexes per company empresas = List companies that are migrated, separated by comma l ogprocess = Process Log logatualizacao = Updating Log logwarning = Warning Error Log loginclusao = Inclusion Log logcritical = Critical Error Log updstop = Enables to interrupt process during execution oktoall = Adjust error automatically deletebkp = Delete backup files at the end of each table updating keeplog = Keep existing log file
If it ended with success: Code Block { "result":"success"}
|