Export from your ERP
Schedule a daily export in Codex and check that the CSV reached Files.
On this page
Prepare the computer
Choose a company computer that runs Codex and can reach the ERP, whether it uses macOS, Windows, or Linux. Use an ERP account with read-only access to the report. Keep its credentials on that computer in macOS Keychain, Windows Credential Manager, or the Linux session keyring. Configure the local ERP client to use the stored credential. Give Codex only the connection name or the export command you configured. Keep passwords and tokens out of chat, logs, and Siglata.
Connect Codex to Siglata and use office_status to confirm you are in the right company office. Run one export with Codex and confirm the path and version in Files before scheduling it.
Schedule the export
In the desktop app, open a local project in Codex. Ask it to create a scheduled task in that project. Review the task in Scheduled and keep the computer on and the app running when the task is due.
Every day at 8 a.m. in America/Sao_Paulo, use the local ERP client to export the agreed report as a CSV with read-only access. Use
files_saveto save it to Files aterp/diario/YYYY-MM-DD.csv, using the date in that time zone. Set the content type totext/csvand include the report name in the note. Report the path and version returned by Files. If the export fails, tell me and leave Files as it is.
Set the time, time zone, and report for your company. For larger reports, see files_upload_begin. If you also need the data in Records, ask Codex to update the agreed table through records_change using a stable key so a retry won't duplicate rows.
Check that the file arrived
Create a second daily task in Codex that runs after the export is due, for example at 10 a.m. in the same time zone. Ask it to look up today's path using files_get with metadataOnly: true. Have it confirm the version and that savedAt is within the past 24 hours. Ask for a finding in Scheduled if the CSV is missing, stale, or the lookup fails. Check the result that day. If both tasks use the same computer, also check that the verification task ran.
If you use the Siglata repository, the freshness command applies the same window and returns an exit code for your monitoring.