Sharepoint HTML电子邮件输出“域\用户名"的垃圾字符.价值观 [英] Sharepoint HTML Email outputs Junk characters for "Domain\Username" values

查看:92
本文介绍了Sharepoint HTML电子邮件输出“域\用户名"的垃圾字符.价值观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Sharepoint 2010上创建了一个工作流,该工作流具有将电子邮件发送到所需用户的步骤.

I recently created a workflow on Sharepoint 2010, which has a step to shoot out emails to the desired users.

电子邮件正文的内容以HTML格式设置,我需要共享点才能向我发送创建/更改特定项目的用户的详细信息.

The content of the email body is formatted in HTML and I need the sharepoint to send me the details of the User who creates/changes a particular item.

但是,当我在收件箱"中收到电子邮件时,看到的是 Domain \ Username 格式,但是我还看到一些垃圾字符附加到该电子邮件中.

However, when i receive the email in my Inbox, I see that it is in Domain\Username format, but I also see some junk characters appended to the same.

例如.对于共享点查找,我收到以下输出:[当前项:请求者](作为字符串)

For Example. I receive the following output for the sharepoint Lookup [Current Item: Requestors] (As String)

11; #DOMAIN \ USERNAME1;#9; #DOMAIN \ USERNAME2

11;#DOMAIN\USERNAME1;#9;#DOMAIN\USERNAME2

有人可以帮助我让我知道如何消除这些垃圾字符吗?

Could someone help me in letting me know on how to eliminate these junk characters?

推荐答案

您的问题是您不能使用"As String",因为它包含项ID,并且不包括用户的电子邮件地址,用户名或登录信息.您需要使用分号分隔"选项之一来使用此信息.

Your issue is that you cannot use "As String" as it includes the items IDs and does not include the users email address, username or login information. You need to the use one of the Semicolon Delimited options in order to use this information.

现在,至于强制失败:此强制输入不能为空".进行更改后,您将无法使用带分隔符的选项,然后将该字段留空.要解决此问题,请根据需要设置该字段,或将其保留为带有显示项目ID的字符串.

Now, as for "Coercion Failed: Input cannot be null for this coercion." once you make the change, you can not use a delimited option and then have the field be empty. To get around this set the field as required or leave it as a string with the item IDs being shown.

如果您要使用人员选择器,然后使用该字段向这些用户发送电子邮件,则必须使用以分号分隔的电子邮件地址",并且该字段必须选择一个用户,否则它将出现在相同的问题中强制错误.

The same issues arise if you want to use the people picker and then use that field to email those users, you have to use "Email Addresses, Semicolon Delimited" and the field must have a user selected or it will run in to the coercion error.

这篇关于Sharepoint HTML电子邮件输出“域\用户名"的垃圾字符.价值观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆