Import meta definitions (Command Line Utility)

Use the DEFINITIEIMPORT action to import reports, analyses, entry layouts, GetConnectors, Profit CLAs (meta definitions) into environments in bulk.

Using the command line action, the same checks are performed as when you import meta definitions in the regular way.

Data

Data

 

Action:

DEFINITIEIMPORT

General options:

Default.

Example:

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password" DEFINITIEIMPORT /B"bestand" /M"map" /E"extension" /O

When importing CLA Updates you could, for example, use the line:

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"ENYOI" /G"Consultant" /W"" /L"c:\Profit CAO.log" DEFINITIEIMPORT /M"C:\CAO_Update" /E"prg" /O

Note: 

Perform the import procedure for CLA Updates at a time when HR/Payroll is not being used by other users.

Extra options

Option

Explanation

/B

File being imported.*

/M

Folder containing the files to be imported.*

/E

Extension by which filtering is performed if a folder has been specified using /M.**

/O

Means that the definition must be overwritten if it already exists.

Note: 

* /B or /M is mandatory, but not both at the same time.

** /E is only used if a folder has been specified using /M.

CLA Update log file

Always check the log file after performing this command line action. The log file may state that the Profit version is too old for importing CLA Updates.

Import a definition in all environments via a batch file option

You can perform the Definition Import action in all environments via an option for the batch file, by adding 'for /d %%d in ("*.*") do' and '%%d' to the default option /O. (The /d following ‘for’ is for directories, /f for files is also possible).

This may be useful if, for example, you have created an analysis, a report and an alert and you then want to import them in all your environments.

Example: 

C:

CD \Program Files (x86)\Profit\AFAS Data\Environments

for /d %%d in ("*.*") do "C:\Program Files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE" /O"%%d" /G"Administrator" /W"xxxxxxx" DEFINITIEIMPORT /M"T:\AFAS PROFIT rapportenlay-outs\import\" /E"viw" /O

See also