I needed to add some features to Tasks today in our account, it went pretty smooth and I thought others might benefit from the work.
https://system.netsuite.com/app/setup/assistants/bundlebuilder.nl?new=T&fetchcompid=662377&recid=1034
[SIZE=4]This Bundle adds the following functionality to Tasks:
[/SIZE][LIST]
[*]Collection of "summary data" when a task is completed
[*]Email notification when a task is completed
[*]If a summary was requested it will be included in the notification email[/LIST][SIZE=4]I used the following technologies and features to build this solution:
[/SIZE][LIST]
[*]SuiteScript - Duh! (client and server)
[*]Global client scripts
[*]Custom fields
[*]SuiteLet
[*]Showing a SuiteLet in a popup window and collecting data from it without leaving the parent window
[*]disabling fields based on logged in user
[*]etc, etc[/LIST]
[SIZE=4]Work flow
[/SIZE][LIST=1]
[*]Task creator checks the "Receive Completion Notification" checkbox on the Task record
[*]Task creator checks the "Require Completion Notes" checkbox on the Task record
[*]Assigns Task and Save
[*]Assignee complete the Task and changes the status to "Complete"
[*]SuiteLet is displayed in browser popup asking for notes (if step# 1 checked)
[*]Assignee enters notes and presses done, the contents of the notes are updated on the Task record
[*]After saving the Task, a UE scripts kicks off an email to the owner including the completion notes (if applicable)[/LIST]
[SIZE=4]Known issues
[/SIZE][LIST]
[*]BIGGEE - list editing doesn't have any effect on the script. That is, if you click the "Complete" link none of this stuff gets invoked. HOWEVER, I have a solution designed: xedit fires UE scripts, the UE script will redirect to the SuiteLet, get the info, then submit the Task.
[*]I'm not using the client form script on the SuiteLet correctly. I added an event handler to the addButton call and I think I could have defined an OnFieldChange handler which would have been a little cleaner
[*]I'm not using a submit button on the SuiteLet which causes a "Are you sure you want to navigate away from this..." message when closing. I think the solution is to implement a OnSave() client method and call my parent window callback from there
[*]I'm got an image in the SuiteLet but the Bundler won't let choose it - you lose
[*]Uhhmmm... some other stuff, but it's almost 1AM and I'm sleepy.[/LIST]
The solution is far from perfect, but it does work well. There are probably some bugs and I already know if a couple of "code smells" that I want to refactor later, but for now I just wanted to get it out there for people to check out.
Hopefully you find it useful, if you do drop me a line: [EMAIL="sklett@pmddirect.com"]sklett@pmddirect.com[/EMAIL]