We have the EXPA CRM which can be used to view the details of various stuff such as Opportunities, Applications, People, Offices and Companies. But it was mentioned to be difficult to handle and use the data effectively from EXPA. So a downloadable version of the data was required. This feature is built to provide a downloadable link for all the data available in EXPA CRM.
How it works
The link to the download will be available in the respective CRM page in EXPA. Each file can contain a maximum of 5000 rows of data (5000 records).
The front-end side will hit the required API endpoint along with columns as well as the other filters that were available for the CRM. The back-end will queue the request and execute it as a background task while responding to the api with 200 and a message informing that the request is queued.
The back-end will then generate an excel which contains the records based on the filters and other request data provided. This excel file will then be uploaded to Amazon S3 where it will stay for 48 hours. The link will then be mailed to the email address of the user who requested the download. The link in the email is valid for 48 hours, after which the file would be deleted.
The front-end has to call the API endpoints with the column names as well as the other required filters. Please find the column names below.