I have a document Library in SharePoint that I am trying to setup a After Update event handler. The event handler should do the following:
- When a user assigns a technician to do an update, then an email is sent to the tech. The tech is selected by a Multiple Choice field.
- When a user changes the status to Closed, an email is sent. The status is a drop-down field.
What I would like to be able to do is to check if the status = "open", "working" or "on hold", and if it is one of these statuses, I need to check to see who is assigned and send that tech an email.
I'd also like to check to see if the status = "closed" and then send only the user an email.
separately, but when I try to add the logic together, I get an error in my Application log as follows:
Windows SharePoint Services 3, General, Event ID 6875. The parameter 'to' cannot be an empty string. Parameter name: to
Here's my code: