Sharepoint工作流将电子邮件发送到Sharepoint List中定义的Sharepoint Group

时间:2016-10-10 16:23:42

标签: sharepoint infopath sharepoint-workflow

对于上下文:我的团队有一个SharePoint(子)站点,其中包含一个附加到SharePoint列表的InfoPath路径。此表单中的一个字段是SharePoint组(隐藏),因此一旦用户提交此表单,List就会包含对相关SharePoint组的引用。 所有这些都按预期工作。

我们还设置了一个简单的工作流,当新的条目添加到List时,通过电子邮件发送上述SharePoint组。这不再适用了。这个功能大约在2个月前工作,但现在由于某种原因,当它被触发时,它会进入“已启动”状态,然后最终进入“暂停”状态。有关“已启动”和“已暂停”状态的详细信息,请参阅下文。

当我设置工作流程以通过电子邮件发送静态人员时,它可以正常工作。

以下是工作流程中电子邮件的配置:

  • 数据来源:当前项目
  • 来自源的字段:[SharePoint组字段]
  • 将字段返回为:电子邮件地址

其他一些说明:

  • 该组已在父共享点上设置,并具有对父级和子级的读取权限。

  • 所有人都可以看到该小组

有关状态的详细信息:

发起者:

Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP BadRequest to https://sharepointsite.com/site/subsite/_vti_bin/client.svc/sp.utilities.utility.ResolvePrincipalInCurrentcontext(input=@ParamUser,scopes='15',sources='15',inputIsEmailOnly='false',addToUserInfoList='True')?%40ParamUser='SD&I+Service+Focal(s)' Correlation Id: c9706d34-5654-3916-bdde-3ae4147b18cf Instance Id: 9b57de3d-d115-4a79-b2e5-e2a9239e8709

暂停:

RequestorId: c9706d34-5654-3916-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 400 {"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The query string \"input\" is missing or invalid."}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["7"],"SPRequestGuid":["c9706d34-5654-3916-bbfd-0b7313f83918"],"request-id":["c9706d34-5654-3916-bbfd-0b7313f83918"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4737"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Mon, 10 Oct 2016 16:03:57 GMT"],"Set-Cookie":["BIGipServerwcms-ew-80-pool=3893922185.20480.0000; path=\/"],"Server":["Microsoft-IIS\/8.0"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine`1.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) 

1 个答案:

答案 0 :(得分:0)

在我的特定情况下,答案是SharePoint组名称在名称中有一个&符号。在api调用期间,SharePoint并不打算对其进行编码。我还在别处读过撇号会导致这个错误。