我怎样才能获得查找价值 [英] How can i get lookup value

查看:53
本文介绍了我怎样才能获得查找价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,



我有一个List" Demo"它有一列"BatchNameLookup"批处理列表的查找列类型。


目前我 可以从"演示"中获取数据列表以及BatchNameLookup。这些工作正常。但是我的"批次" List还有一个Lookup Column"Venue"。 (查找另一个列表的列)。


我可以使用"BatchNameLookup"获取Venue查找列值吗?来自"Demo"的列。列表?


如果否,那么我可以获得场地价值。


请帮助!


解决方案

 


您可以使用rest api获取查阅列ID,然后获取父列表项基于ID。


/ _ api / lists / getbytitle('MainList')/ items(ID)?


select = Title,LookupField / Id,LookupField / Title,LookupField / CustomField&


expand = LookupField


使用SharePoint rest api获取数据,这里有两个线程供您参考。


<跨度> HTTPS://www.c -sharpcorner.com/article/crud-operation-on-list-items-using-rest-api-services-in-shar /


< p style =""> https://www.c-sharpcorner.com/ article / sharepoint-2013-restful-service /


最好的问候,



Hello Experts,

I have one List "Demo" which has one column "BatchNameLookup" type of lookup column of Batch List.

Currently I  can fatch Data from "Demo" List along with BatchNameLookup. these working fine. but my "Batch" List also has one Lookup Column "Venue" (Lookup Column of Another List).

Can I get Venue Lookup Column Value Using "BatchNameLookup" Column from "Demo" List?

If No, then i can i get Venue Value.

Please Help!

解决方案

Hi, 

You could use rest api to get lookup column ID, then get parent list item based on the ID.

/_api/lists/getbytitle('MainList')/items(ID)?


select=Title,LookupField/Id,LookupField/Title,LookupField/CustomField&


expand=LookupField

Using SharePoint rest api to get data, here are two threads for your reference.

https://www.c-sharpcorner.com/article/crud-operation-on-list-items-using-rest-api-services-in-shar/

https://www.c-sharpcorner.com/article/sharepoint-2013-restful-service/

Best Regards,

Lee


这篇关于我怎样才能获得查找价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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