2

I am able to delete vote records using system administrator but when I am trying with other user INSUFFICIENT_ACCESS_OR_READONLY exception is thrown.

These vote records are related to knowledge article. I have gone through this but it seem to unrelated for knowledge article's votes.

0

This can be done by moving delete records method to without sharing class and calling the method in with sharing class.

As the delete method execute in system mode there wont be any error message.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.