I have a simple list with one field I named ‘Recipient’. It is a name field that allows you to select other sharepoint users. The workflow has one action, send email that does a workflow lookup at the Recipient filed on the current item and returns the field as a semicolon delimited email address. When I create a new item and select myself as the recipient the email gets sent but if I select anyone else the workflow goes into suspend status with the following status:
I had the same problem today when I was developing a document approval workflow in Visual Studio 2012.
The workflow gets suspended while trying to send the mail to the Approver.
System.ApplicationException error: HTTP 400
HTTP BadRequest to {my site} / _vti_bin / client.svc / sp.utilities.utility.SendEmail
I discovered that the user to whom I was wanting to send the email was not present at:
{my site} => Site Settings => Users and Permissions (People and groups)
So I went to:
Central Administration => Application Management => Service Applications (Manage service applications) => User Profile Service Application => People (Manage User Profiles)
And search for the user (email recipient) in “Find profiles”.
If the user is not found, having the certainty that it is present in Active Directory, you should do:
Central Administration => Application Management => Service Applications (Manage service applications) => User Profile Service Application => Synchronization => Start Profile Synchronization => Start Full Synchronization => OK
Then, when I added (obviously with the “Work Email”) this user in:
{my site} => Site Settings => Users and Permissions (People and groups)
It worked!
The comments on this community helped me a lot.
I hope this helps too!
I got the same results using the Assigned to field, but that was a good suggestion. It helped me eliminate my approver field as the problem. Again, when I sent the email to myself directly, I received it with no problems. I displayed the assigned to person and it was me (my email address).
Guess it’s time to call Microsoft support :-\
I will post the fix if I get one.
Thanks for all your suggestions!
WOW…that’s some odd workflow issues. You gotta love SharePoint.
Okay so can you try running the email stage with elevated permissions? Something is faulting or not running the way it should it and its sticking on the email to other users.
Another thing you can do is create a new field in your list. Use an existing site column and use the Assigned To field. This is a preset people picker field that should allow you to use as an email set field. Pull that field back into your workflow in place of your other Approver field and try it. Cross your fingers 🙂
I adjusted by workflow as you suggested.
Step 1 – Update field for approver (enter my name in field)
Step 2 – Email approver
Step 3 – Update text field for testing
Still did not send me an email and did not update the field in step 3. When I changed step 2 to email me directly (not the approver), it worked. I got the email and step 3 updated the test field.
Lisa,
A quick thought is that the workflow may not be assigning the email address for you correctly. Also the fact that your workflow is not filling in the test field means something in that logic is failing and could be causing your emails to fail.
Can you try adding a send to email step underneath your criteria step. Basically replicate that in the same stage and see if it works. Also put a stop after the email and use the test field before the stop.