function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
himanshunath@gmail.comhimanshunath@gmail.com 

Vote Type with Up and Down

Any one has used Up and Down picklist values on Vote Object using Vote API. I have a requirement to insert data into vote object using Vote API for Knowledge articles.

 

I am able to insert data with Type 1 through 5 but when I do the same with Up or Down i am getting below error

"Invalid vote type 'Up(db=0,api=Up)' for voting mode '2(db=2,api=Rank1To5)'.: Vote Value"

Any help is much appreciated.

 

Thanks

 

 

 

SForceBeWithYouSForceBeWithYou
Himan,

You can only have one type of voting at a time. To enable thumbs up or down voting, go to Knowledge Settings. Under Knowledge Statistics Settings, check "Enable  thumbs up or down voting for article"