write to the workflow history list programatically
-
08-12-2019 - |
Question
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?
Solution
OTHER TIPS
Or (also) you can write detailed exception to the ULS logs. How to write to logs you can find, for example here
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange