本文介绍了如何从搜索查询中获取SPS-Birthday属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在尝试在SPFx中获取用户的生日.我采用了以下方法:从共享点站点的用户信息列表中获取用户 获取电子邮件,然后使用GetPropertiesFor方法获取用户属性 我正在获得结果,但是延迟了所有用户的循环.现在我只有30个用户.但是,如果有1万名用户,则webpart将永远挂起.因此,我决定通过搜索查询来获取详细信息.为此,我正在使用下面的查询 this.context.pageContext.web.absoluteUrl +`/_api/search/query?querytext ='*'& sourceid ='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'& selectproperties =' PreferredName,WorkEmail,PictureUrl,Title,Departament,SPS-Birthday,Url'` 但是"SPS-Birthday"属性没有任何价值.但是用我的第一种方法,"SPS-Birthday"具有价值.如何通过搜索查询实现? Mihir 解决方案 I am trying to get the birthdays of user in SPFx . I have taken below approach:get users from userinformation list of sharepoint siteget the email, then get the properties of user with GetPropertiesFor methodI am getting results, but it is delaying to loop through all users. right now i am having only 30 users. But if there 10K users then webpart will hang forever. So I decided to get the details with search query. for this i am using below query this.context.pageContext.web.absoluteUrl+`/_api/search/query?querytext='*'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'&selectproperties='PreferredName,WorkEmail,PictureUrl,Title,Departament,SPS-Birthday,Url'`But `SPS-Birthday` property doesn't have any value. But with my first approach `SPS-Birthday` is having value. How to achieve through search query?Mihir 解决方案 这篇关于如何从搜索查询中获取SPS-Birthday属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-11 06:06