首页 > 其他 > 详细

Rest访问获取其他表内的数据

时间:2014-10-31 17:11:15      阅读:263      评论:0      收藏:0      [点我收藏+]

http://valexsu/sites/xoec/wf/_api/web/lists/GetByTitle(‘IBDManagement%20List‘)/Items?$select=Field_OTIS_ProcessNo,Field_OTIS_OrderNo,Created,Author/Title&$expand=Author&$filter=Field_OTIS_OrderNo%20eq%20%27asdfsa%27

参考:http://msdn.microsoft.com/zh-cn/magazine/dn198245.aspx

读数据是想要读一个用户名出来,结果只读出来一个字段加ID,虽然不清楚这是怎么来的。但是用上面的句子查出来了。我要选取的名字是Author表中的title字段。其他都是我自己表中查出的字段,Author/Title&$expand=Author表示我从Author表中去拿。expand=Author表示外联Author表

Rest访问获取其他表内的数据

原文:http://www.cnblogs.com/Q-lucia/p/4065499.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!