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
Sam KanSam Kan 

How to update case comment object

I have created a Visualforce page that looks like Close Case Layout which also shows all the associated cases. I am trying to customise the close case to close all the related cases by getting certain inputs from case owner like status, category and comments also.

 

I am trying to update the comments input into the case comment using onclick javascript ajax toolkit. But it keeps saying invalid field name.

 

I tried using Casecomments, Casecomment, Casecomment__r,etc.

 

Is there a way to update the Casecomment object to reflect the comments added.

 

Thanks