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
Tal CarmiTal Carmi 

Unpublish Case Comment Using Apex Trigger

Hi,

I've been trying to update case comments to be private, i.e. - so they won't appear in the self service portal.

I used the following code:

 

for(Case_Comment comment: queriedComments)

comment.IsPublished=False;

update queriedComments;

 

But the comments keep on being public (the checkbox is checked). It is important to note that when I manually click on Make Private, the comment is indeed unpublished.

 

Any help would be welcome,

Thanks,

Tal

Mats ErikssonMats Eriksson

Did you solve this issue?

 

/Mats

Tal One1Tal One1

Nope.

And Salesforce support never gave me a seriours answer