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
Devansh Singh 9Devansh Singh 9 

how to get case comment id?

Sarvesh9Sarvesh9
Not sure what you are trying to achive. But Case Comment is standard object and you can get all the Case Comments associated with a perticular case with the help of ParentId field which will be a lookup to case.
A sample query might look like:
Select Id From CaseComment Where ParentId = 'Your CaseId'
AbhinavAbhinav (Salesforce Developers) 
Check this:

 List < CaseComment > listCaseComments = [ SELECT Id, Parent.CaseNumber, Parent.Description FROM CaseComment];

https://www.infallibletechie.com/2016/06/how-to-get-case-details-from.html

https://salesforce.stackexchange.com/questions/37291/how-to-get-the-caseid-when-creating-a-casecomment

Thanks!