如何将数据附加到SharePoint用户配置文件属性 [英] How to append data to a SharePoint User Profile property

查看:80
本文介绍了如何将数据附加到SharePoint用户配置文件属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要知道是否存在将数据附加到SharePoint用户配置文件属性的方法.我可以使用ModifyUserPropertyByAccountName覆盖该属性.我需要使用SOAP进行的操作是保留属性中的数据,然后将数据添加到数据中 该属性中已经存在.

I need to know if there is a way to append data to a SharePoint User Profile property. I can overwrite the property using ModifyUserPropertyByAccountName. What I need to do using SOAP is to keep the data that is in the property and then add data to the data that is already in the property.

谢谢.

推荐答案

cjlangham,

Hi cjlangham,

UserProfileService不提供直接将数据附加到User Profile Property的方法.

UserProfileService not provide method to append data to User Profile Property directly.

一种解决方法是先获取原始用户属性值,然后将数据附加到原始值中,然后在Soap XML中使用此变量将其应用,如下所示:

A workaround is to get the Original User Property value firstly and then append data into the original value, then use this variable in Soap XML to apply it like below:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices-2014.02.js"></script>
<script type="text/javascript">


().SPServices({ 操作:"GetUserProfileByName", 异步:错误, 帐户名称:"Contoso \\ Administrator", completefunc:函数(xData,状态){ console.log(xData.responseXML); var testdata = getUPValue(xData.responseXML,"test"); console.log(testdata); updateproperties(testdata); } }); 函数getUPValue(x,p){ var thisValue =
().SPServices({ operation: "GetUserProfileByName", async: false, AccountName: "Contoso\\Administrator", completefunc: function (xData, Status) { console.log(xData.responseXML); var testdata = getUPValue(xData.responseXML, "test"); console.log(testdata); updateproperties(testdata); } }); function getUPValue(x, p) { var thisValue =


(x).SPFilterNode("PropertyData").filter(function(){ 返回
(x).SPFilterNode("PropertyData").filter(function() { return


这篇关于如何将数据附加到SharePoint用户配置文件属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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