I have created a basic SharePoint 2013 workflow with the intent to call the Rest API to retrieve the users from a SharePoint Group. To do this I am attempting to use the HTTP Web Service action inside of SharePoint Designer. In the call I use the following URL:
https://siteurl/_api/web/sitegroups/getbyname(‘ProcessOwners’)
and I added a request header with dictionary values
and Content-Type, string, application/json;odata=verbose
.
When the workflow runs, I do not receive a content response from the web service call, instead the status changes to suspended with an error:
RequestorId: 3fbfd739-0f97-1a85-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 500 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["41"],"SPRequestGuid":["3fbfd739-0f97-1a85-917e-37121cfed511"],"request-id":["3fbfd739-0f97-1a85-917e-37121cfed511"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4569"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Wed, 06 Aug 2014 16:30:59 GMT"],"Server":["Microsoft-IIS/8.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Errors from ULS:
System.Runtime.InteropServices.COMException: Invalid text value. A text field contains invalid data. Please check the value and try again.0x81020018, StackTrace: at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion) at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, ETC...
If I make the same call and leave off the request header, the workflow is suspended with a message saying it is expecting a JSON returned value, and the value appears to be of “atom” type. But does show me all the values from within the call, in the error message as well, so I know that the call is working. I have also verified the api call using two different api clients inside of chrome, and receive the appropriate response and data.
I have looked in several places, and I have not found any good solutions for my issue.