Uncategorized

Workflow Call HTTP Web service

http://johnliu.net/blog/2014/12/15/spd2013-workflow-how-to-check-user-is-member-of-group.html

Advertisements
SharePoint, SharePoint 2013, Workflow

Workflow suspended

Scenario

When testing workflow I created to test accounts and set up mail boxes for those accounts. Send email from outlook to these two test accounts works fine.

*Note Important : User Profile service not synched with AD after creating the mail boxes.

Created a simple SPD workflow that sends mail to these test accounts. The internal status of workflow changed to suspended. Error status looks like,

RequestorId”: 3d95f396-16f9-9e6d-0000-000000000000. Details: “RequestorId”: 3d95f396-16f9-9e6d-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException…

How to Fix this

Try this first.

Run this PowerShell script (from application server) to check if SharePoint is able to send mail. For me it worked and sent mail to Test accounts… but still workflow was not sending email to test accounts.

$site = New-Object Microsoft.SharePoint.SpSite(“http://my.SharePoint.Site “)

$web = $site.OpenWeb()

$mail = [Microsoft.Sharepoint.Utilities.SpUtility]::SendEmail($web,0,0,”support@company.com”,”Subject of the Mail”,”mail body”)

Try this next.

From central administrator run full user profile synchronization.

Now try again and voila!!! it worked. Workflow sends email to Test accounts…

Also grant ‘Contribute’ permission to the user┬áto workflow History list.

Useful links

https://social.technet.microsoft.com/Forums/sharepoint/en-US/0d9a7bac-7829-4464-a837-3c5169cf73b5/sharepoint-2013-workflow-goes-suspended-while-trying-to-send-an-email?forum=sharepointgeneral

https://social.msdn.microsoft.com/Forums/en-us/4f52fea6-64e5-42be-9647-49341d7d549c/workflow-cancels-on-sending-email-action-sharepoint-2013?forum=wflmgr

https://technet.microsoft.com/en-us/library/cc263462.aspx