在REST API中获取用户标识号 [英] get user ID numbers in REST API

查看:79
本文介绍了在REST API中获取用户标识号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个要求。我需要使用REST API更新列表项。

I have a requirement. I need to update a list item with REST API.

该列表有一个接受多值的人员选择器。因此,在rest API中,我可以通过为特定于用户信息列表的用户设置数字来实现此目的。但是,由于我需要将此项目复制到其他列表,我该如何动态获取这些ID?

The list has a people picker that accepts multi value. So, in rest API, I am able to do this by putting the numbers for users specific to the User Information List. However, as I need to copy this item to other list then how can I get these IDs dynamically?

请帮助

与SharePoint相关的任何内容https://www.fiverr.com/rashu268

For anything related to SharePoint https://www.fiverr.com/rashu268

推荐答案

嗨拉胡尔。当您使用REST API获取列表信息时,您只需要在捕获人员选择器的字段上使用
Hi Rahul. When you use REST API to get the list information, you would just need to use


扩展。然后迭代它们(因为它是多选的)并选择ID字段。
expand in your call on the field that captures the people picker. You then iterate through them (since it's multi-select) and pick the ID field.


这篇关于在REST API中获取用户标识号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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