none
Project Server 2010 - SendEmail Activity customization in workflow RRS feed

  • Question

  • I am using the SendEmail Activity in a custom workflow in Project Server 2010.  I modified the MethodInvoking method to get the to and from fields from a List and customize the subject and body field values.  When I add code to validate if a field has a value an error occurs.  I have been unsuccessful in being able to debug the activity to see where the error occurs.  Any ideas?


    Wednesday, January 29, 2014 4:26 PM

Answers

  • Turns out the issue was checking the value from the field in the list was converting to a string (i.e., item["field1"].ToString() to a null, which caused the error. The solution is to take off the ToString and it worked.

    • Marked as answer by davidlcrooks Friday, January 31, 2014 1:04 PM
    Friday, January 31, 2014 1:04 PM