Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a sharepoint designer workflow with many Log to history activities to know where the workflow is.

I also have 2 custom activities with some complex logic and try catch code.

I would like to put some code in he catch blocks that writes to the same workflow history list the details of the exception, because when an exception is thrown, sharepoint only shows error occurred.

Or any other options?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Use SPWorkflow.CreateHistoryEvent

share|improve this answer
add comment

Or (also) you can write detailed exception to the ULS logs. How to write to logs you can find, for example here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.