locked
SharePoint WorkFlow - Send notification mail including item form RRS feed

  • Question

  • I'm developing a custom sharepoint WF with visual studio. I'm using the SendMail WF action. I need to send a mail to users when a task has been marked as completed but in the mail I have to introduce the display form of the item in the body. So the users will be directly informed that the task is completed and they will see the task information/columns.

    I know how to do it with SharePoint Designer but not with visual studio.

    Any ideas? Thks

    Friday, September 2, 2011 9:41 AM

All replies

  • Hi Djai,

     

    You can use SPUtility.SendEmail Method to send email with the htmlBody format, and you can use the SPContext.current.listitem to get list item and display its properties info in the htmlBody.

     

    Thanks


    Regards, Daniel
    Tuesday, September 6, 2011 12:00 PM
    Moderator
  • Thanky for the reply,

    I know this trick but I don't want to simply send the item info. I have to use the same format as sharepoint alert. It includes the styles, etc.... I'm looking for a moment but I cannot find anything....

    Tuesday, September 6, 2011 1:09 PM