Hi guys,
A customer is wanting to use their LF system as a type of job management system. Each job has a number of documents and folders that are built up during the life of the job. There are various Forms and Workflows as part of the job process, and at present the job owner is receiving an email notification whenever a new document is created for the job, a review process completes, a quote document is received, etc etc.
A job owner can be responsible for multiple jobs, so as you can imagine, the email traffic is getting pretty heavy. They want to change it so that the owner receives a single email each morning that contains a list of all the documents/folders that were created/modified the previous day. (The top level folder for each Job is the "master" reference for the job with its template containing most of the job metadata - "Job Number" being the key/linking field in all templates - so the "Job Folder" template is one of the main templates.)
Based on some of the other suggestions made in here, I've added a (hidden to users) yes/no "Change" field to each of the main templates. In Workflows that would normally send an email notification to the job owner, I'm replacing the Email activity with a field update to set the "Change" field on the document/folder to "Yes". So now I have a bunch of documents/folders throughout the repository with the Change field set to "Yes".
I've got a new workflow (that'll run at the start of each day) to the stage where it searches the repository for all Change = "Yes" fields, then For Each Entry, retrieving the owner's email, the job number/name/customer/status, and the document/folder template and last modified date. This is then being written to a row in a SQL table.
So far so good, I'm retrieving the data I need and it's all in SQL, but I'm a bit stuck on the next step, that of composing a single email per job owner that lists all the changed document/folder details for the jobs that belong to them. Any suggestions on the best approach for this?
One other thing I'm wondering about, if they were using Web Access I could generate a URL for each of the documents, store it in SQL, and include that in the body of the email. As they aren't using Web Access that's not an option, is there any way of attaching a link to each of the documents in the email that goes out? I know how to do this normally, however the email creation will be outside of the For Each Entry step so I can't reference the relevant entry per owner in order to add it as an attachment in the email.
Here's the workflow so far (the first two activities remove the existing data in the SQL table in preparation for the current entries), any suggestions will be appreciated.
Thanks!
Mike