SharePoint Online 中用户评级列的真实姓名是什么以及如何使用 REST 进行检索

问题描述 投票:0回答:1

我的目标是显示用户是否对列表中的项目进行了评分。我需要从 SharePoint Online 检索用户评级列 - 请参阅屏幕截图:

我将通过 SPFX Web 部件使用 REST 检索它。

   const columnsToRetrieve =
        `Id, Author/Id, Editor/Id, Editor/Title, Status, Title, Created, LikesCount, LikedBy/Title, LikedBy/Id, LikedBy/EMail, AverageRating`
    do {
        if (!pagedItems) {
            pagedItems = await Web(siteUrl).using(SPFx(context)).lists
                .getByTitle(listName)
                .items
                .select(columnsToRetrieve)
                .expand("Author, Editor, LikedBy")
                .getPaged()

我尝试过使用

Rating, rating, Rates
和其他几个,但没有一个被识别。 我不知道真名是什么。几乎没有任何文档涉及这些列。 有谁有使用本专栏的经验并且也许可以启发我吗?

~我读过:https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ff407954(v=office.14)#retriving-social- ratings 但这没有帮助,它指的是SP2010

rest sharepoint spfx rating
1个回答
0
投票

真名是Ratings。为什么这没有很好的记录是很典型的! :)

© www.soinside.com 2019 - 2024. All rights reserved.