Trigger email notification on task closure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 11:11 AM
Hi all,
I have a simple workflow with two tasks, but my RITM has an attachment included. This attachment is added on the first task and I would like for it to be included in the email notification that goes out to requester when the request is completed.
My closed email notification is on the catalog task table and has the "include attachment" checkbox selected. I tried adding the advanced condition below so that the email is fired once the second task is completed instead of the first but nothing is being triggered.
Can anyone assist with this? Or if anyone knows a more practical way of managing this even better!
Advanced condition:
if(current.wf_activity.name == "Fulfill sharepoint site request"){
answer=true;
}
else answer=false;
Thanks,
Grace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 11:27 AM
Why aren't you moving the Attachment up to the parent RITM when appropriate, and then just using a standard notification with the 'include attachments' box checked?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 11:37 AM
That was my first attempt but no attachments were included in the email. After looking through a couple of threads many people mention the catalog task and triggering the notification off that, that's why I took that route.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 11:41 AM
If you can explain the order of how things play out in your scenario, I may be able to better help.
What I'm guessing is happened, is that you had it setup to move the attachment, but the trigger didn't occur. The problem in that case is that moving the attachment does nothing to the RITM table (the RITM record isn't actually updated), so the notification never triggers. To fix that, the script you have setup to move the attachment, also needs to make some kind of change/update to the RITM (like a Work note or something).
Or maybe I'm misunderstanding how your steps occur and their order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 01:56 PM
I think our process may be a bit simpler. We do have this working for another one of our catalog items but it only has one task associated to it.
In this case here is our process
1. User submits the request, which creates the RITM
2. First task: Fulfiller attaches a document and closes the task
3. Second task: Fulfiller completes work and closes the task
4. Email notification of completion sent out to requestor with the attachment included in the email
In the case where we have it working now on the one task scenario I have the email notification send on the catalog task table