Hi all,
I have set up the report generator, which is great. I also have an upload to Azure (developed outside of SF) which updates my Db with an online path to the file in the cloud. All is good. When a client creates a pdf (e.g. an invoice) with a task.
The following happens;
click task → insert in Table Rpt_queue → file is made. → File is pickup by magic → uploaded to Azure → File path is inserted in an extra column in the rpt_queue.
An update trigger fires and send the file back to the source table (e.g. invoices) AND to a table 'Document Pool’. The document pool is where we collect ALL files on this account. Invoices, reports, bills, contract, etc. Anything generated? → boom, in the document pool.
So, after the task has fired, we use a process flow to open this document pool in a new tab. All good. HOWEVER, due to the time it takes to generate and handle the file, the doc.pool is not updated yet. This takes on avarage 20secs.
Is it possible to either delay to process flow with 20seconds? (with a loading bar if possible - this way the client will think 'oh, the file is on it's way.’ → doc. pool opens with the file in it).
OR
Refresh the doc.pool automatically 20secs after opening it (refresh only once)
OR
Refresh the doc.pool when an insert is done?
Any takes on this?
Kind regards,
Alex