【问题标题】:Sharepoint workflow sending email to Sharepoint Group defined in Sharepoint ListSharepoint 工作流程向 Sharepoint 列表中定义的 Sharepoint 组发送电子邮件
【发布时间】:2016-10-10 16:23:42
【问题描述】:

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

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

当我将工作流程设置为向静态人员发送电子邮件时,它工作正常。

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

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

其他一些注意事项:

  • 组在父共享点上设置,并且对父共享点和子共享都具有读取权限。

  • 群组对所有​​人可见

状态详情:

开始:

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) 

【问题讨论】:

    标签: sharepoint infopath sharepoint-workflow


    【解决方案1】:

    在我的特定情况下,答案是 SharePoint 组名称的名称中有一个 & 符号。在 api 调用期间,SharePoint 没有费心对其进行编码。我还在其他地方读到撇号会导致此错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-22
      • 1970-01-01
      • 2019-03-03
      • 2018-12-12
      • 1970-01-01
      • 2016-11-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多