How do I mark an answer as Best Answer through ConenctApi? I tried setting bestAnswerId
of ConnectApi.QuestionAndAnswersCapabilityInput
but it does not mark the answer as Best Answer.
ConnectApi.QuestionAndAnswersCapabilityInput questionAndAnswerCapabilitiesInput = new ConnectApi.QuestionAndAnswersCapabilityInput();
questionAndAnswerCapabilitiesInput.bestAnswerId = feedComment.Id;
Can someone help how to post the answer as Best Answer?