Skip to main content

Looking at the Email notification, found that would be really cooll if include a View into the Email Body will be a really nice way to keep users posted about a particular event. this will just make the view read from params the ID and render into the Email. 

 

I know I can compose the email and drag the individual data, just wondering if there is a way to just reference into the email.

 

Dino

Probably the closest way to accomplish what you're describing would be to create a PDF for that "View" and attach it to the task notification.  Otherwise you're dragging the individual data into the email like you described.

 

Regards,

Tim


It is possible to put a table of infomation in an email. We use the Inline email editor available in the Marketplace and you can directly call a smartobject and render a table of information. You store the template in Sharepoint or even a smartbox and then call this inline funtion as part of the email body.

 

Here is the link to the Email template with everything you need.

http://community.k2.com/t5/K2-blackpearl/Email-Template-Inline-Function/ba-p/933

 

Here is one example of how you format a table to pull worflow activity data into an email using the email template inline function.

 

{SMOList}Process,Process_Instance,List,ProcessInstanceID,IPI.ID]{/SMOList}
{SMOList}Activities,Activity_Instance_Destination,List,ProcessInstanceID,IPI.ID] {/SMOList}
{SMOList}Comments,Workflow_Comment,GetList,ProcessInstanceID,IPI.ID] {/SMOList}
<TABLE border=1>
<TR>
  <TH align=left>Activity Name</TH>
  <TH align=left>User</TH>
  <TH align=left>Start Date</TH>
  <TH align=left>Finish Date</TH>
  <TH align=left>Status</TH>
  <TH align=left>Final Action</TH>
</TR>
{Start{Activities}}
<TR>
  <TD>{Activities{ActivityName}}</TD>
  <TD>{Activities{Destination}}</TD>
  <TD>{Activities{StartDate}}</TD>
  <TD>{Activities{FinishDate}}</TD>
  <TD>{Activities{Status}}</TD>
  <TD>{Activities{FinalAction}}</TD>
</TR>
{End{Activities}}
</TABLE>
<TABLE border=1>
<TR>
  <TH align=left>Created By</TH>
  <TH align=left>Created Date</TH>
  <TH align=left>Comment</TH>
</TR>
{Start{Comments}}
<TR>
  <TD>{Comments{CreatedBy}}</TD>
  <TD>{Comments{CreatedDate}}</TD>
  <TD>{Comments{Comment}}</TD>
</TR>
{End{Comments}}
</TABLE>

 

Hope this helps


Reply