HiPlease tell how I can add Approve/Reject buttons in e-mails that are sent to the approver after a certain task.Thanks
You can add two links in your mail content for two hyperlink words say Approve and Reject and send values in the url for tracking the desired action.This has to in HTML mail format.HTH
This is being done through template based e-mailing ie. using iw_solution_mail_custom.ipl in the external task. In the ccmail_htmlbody.tpl what changes should I make so that I get two buttons for Approve and Reject?
If you need to customise your mail, then you SHOULD use the custom scripts being used for instead of the default mail functionality.Although, could you please get clear about your requirements... as you need 2 buttons in your mail content or in TPL... which generates the content??
There would be _htmlbody.tpl in your solutions directory. You need to decide in which step you would want to have "Accept/Reject" buttons. At the end of the *_htmlbody.tpl you need to add this code[HTML] <br> $iw_param{label} = "Accept";<br> $iw_param{href} = "/iw-cc/command/iw.ccpro.task_details_transition_task?done%5fpage=/iw-cc/teamsite/common/close%5fwindow.html&transition=Accept&full_redirect=true&do_transition=true&taskid="<br> . iwpt_dcr_value('user_task@id');<br> <br> $iw_param{label} = "Reject";<br> $iw_param{href} = "/iw-cc/command/iw.ccpro.task_details_transition_task?done%5fpage=/iw-cc/teamsite/common/close%5fwindow.html&transition=Reject&full_redirect=true&do_transition=true&taskid="<br> . iwpt_dcr_value('user_task@id');<br> [/HTML]You need to make sure the transition name is correct in the URL. Though they is not direct CC URI for accept & reject transitions. This one get's the work done. I modified the close_window.html to show a pop-up that the transition was successful.Hope this helps.-Pradeep
Check in your wft the name of the transition. Maybe your transitions are named is Approve and Reject.