Hello,
I am trying to import/update employees with TimeTrex API tools.
How do I create a map file exactly?
Using TimeTrex API tools
Re: Using TimeTrex API tools
Easiest way is to go through the web interface Import Wizard and create the mapping there, save it as a specific name (preferably without spaces or special characters), then you can use the "import.php" file's "-export_map <name>" parameter to export the saved mapping to a file, which you can then use to import from the command line.
-
- Posts: 6
- Joined: Wed Jun 02, 2021 6:57 pm
Re: Using TimeTrex API tools
Can you please give me an example of a statement with the -export_name API_MAP for an employee import?
Thank you
Thank you
Re: Using TimeTrex API tools
It would be something similar to this:
Code: Select all
php import.php -server "https://mycompany.com/timetrex/api/json/api.php" -username admin -password securepass -object User -export_map
MySavedMap