Share via

Rating Using JavaScript in SharePoint Online

Anonymous
2016-05-24T10:31:13+00:00

We deployed a custom made application a few weeks ago where we used reputation.js for a custom rating functionality in SharePoint. Early this morning we started encountering issues with this functionality. After investigating I'm getting this error:

TypeError: this.get_pendingRequest(...).$2b_0 is not a function

at SP.ClientRuntimeContext.addQueryIdAndResultObject (sp.runtime.js:2)

at Function.Microsoft.Office.Server.ReputationModel.Reputation.setRating (Reputation.js:1)

This happens whenever I call this specific code block:

rating = Microsoft.Office.Server.ReputationModel.Reputation.setRating(ctx, listId, id , star);

Was there any change rolled out recently to SharePoint Online that may have affected this? If so, what should I do to fix it? Thanks!

Microsoft 365 and Office
Microsoft 365 and Office

A comprehensive suite of productivity tools and cloud services that enhance collaboration, communication, and efficiency. Combining classic Office apps with advanced Microsoft 365 features, it supports both personal and business needs

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2016-05-24T15:16:16+00:00

    Hi Lemuel,

    We would suggest you post in our MSDN forumfor dedicated support which is a specific forum for customization on the SharePoint Online.

    Your understanding is appreciated.

    Kerwin

    Was this answer helpful?

    0 comments No comments