填写公司名称 [英] Populating company name

查看:85
本文介绍了填写公司名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

填充在列表上创建记录的用户的公司名称最简单的方法是什么?我指的是从用户个人资料中获取公司名称并填充一列.可以通过计算字段或自定义javascript来做到这一点吗?

谢谢


Sherazad

解决方案

您好,

您可以通过REST API或JavaScript获取用户个人资料.

例如:

您可以在下面的线程中查看更多详细信息.

最好的问候,


Hi,

What would be the easiest way to populate the company name of the user who created a record on a list? I am referring to getting the company name from the user's profile and populating a column. Can this be done by a calculated field or custom javascript?

thanks,


Sherazad

解决方案

Hi,

You could get user profile by REST API or JavaScript.

For example:

http://sp:12001/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='contoso\administrator'

You could check below threads for more details.

http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html

http://www.vrdmn.com/2013/02/sharepoint-2013-working-with-user.html

Best Regards,

Lee


这篇关于填写公司名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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