Sync EFOS tax records from SAT to database
Recipe ToolsMarketingDocument/FileSales EnablementUtilitiesData ParserDatabase
What it does
When a scheduled time arrives, this automation fetches the latest EFOS definitive list from SAT and uploads it to Google Drive. It then parses the file and loads the records into the database only when new data is detected.
Who it's for
Finance teams who need to keep tax compliance records current without manual downloads.
How teams use this
Keep tax compliance data current
Automatically pull the latest EFOS definitive list from SAT and store it in the database on a regular schedule. The team always has fresh records without manual intervention.
Archive EFOS files for audit trails
Route each downloaded EFOS file to Google Drive so the team can review historical versions and maintain compliance documentation. Only the storage location changes.
Alert when new EFOS records arrive
Add a notification step that sends a message to a compliance channel when the EFOS record count increases. Include a filter to only alert if the new count exceeds the prior load.
How it works
- Run on a set schedule. This automation starts at a specified interval to check for and load the latest EFOS definitive records from SAT.
- Check the last load date. Search the FOLIOS DE SERVICIOS lookup table to see when EFOS records were last loaded into the database.
- Download EFOS from SAT. Fetch the EFOS definitive file from SAT that lists companies with presumed nonexistent operations and download it.
- Store the file in Google Drive. Upload the downloaded EFOS file to a designated Google Drive folder for processing, backup, and audit trail purposes.
- Load records into the database. Parse the EFOS file and insert or update the tax records in the database when new data is detected compared to the last load.