Autoproff - File cleanup
cleanup.hubspothooks.sunrise.dk
- In HubSpot, there is a workflow that will send a company ID to this middleware
- Receiver with store it in database queue
- Cron will regularly read the queue and find companies in it
- For each of them, it will pull associated deals
- For each of these deals, it will pull "business_registration_document" and "identity_card" from HubSpot
- It will then find file IDs for these two files using and store them in another database queue
- It will remove the company from first queue
- Second cron will then remove the files in HubSpot and update the deal with message "Removed - Can be found in Penneo"