Vote

Represents a vote that a user has made on a Knowledge Article, Idea, or Reply.

If you are importing Vote data into Salesforce and need to set the value for an audit field, such as CreatedDate, contact Salesforce. Audit fields are automatically updated during API operations unless you request to set these fields yourself..

Introduced in API version 12.0.

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

  • As of Summer ’20 and later, only authenticated internal and external users can access this object.
  • Voting on Knowledge articles is available only when Knowledge is enabled.
  • Type: reference

  • Properties: Create, Filter, Group, Sort

  • Description:

    ID of the Knowledge Article, Idea, or Reply associated with this vote.

    This is a polymorphic relationship field.

  • Relationship name: Parent

  • Relationship type: polymorphic

  • Refers to: Idea, IdeaComment, KnowledgeArticle, Question, Reply, Solution

  • Type: picklist
  • Properties: Create, Filter, Group, Restricted picklist, Sort, Update
  • Description: Picklist that indicates the type of vote. The value Up indicates that the vote is a user’s positive endorsement of the associated idea or reply. The value Down indicates that the vote is a user’s negative endorsement of the associated idea or reply.

For Knowledge Articles, one vote record is inserted per user per Knowledge Article. Voting for another article version overrides the vote for the previous version.

In version 12.0 and later, use this object to track the votes that users made on ideas. For more information on ideas, see “Understand and Work with Ideas” in the Salesforce Help .

In version 17.0 and later, you must filter using the following syntax when querying this object in a SOQL query: ParentId = single ID, Parent.Type = single Type, Id = single ID, or Id IN (list of IDs). See Comparison Operators in the Salesforce SOQL and SOSL Reference Guide for a sample query.

A SOQL query must filter using one of the following Parent or Id clauses.

  • ParentId = [single ID]
  • Parent.Type = [single type]
  • Id = [single ID]
  • Id IN = [list of IDs]