Hi @Jacob_Kalaj
This is just to confirm again, you want to sync case comments only(not chatter feed). If that is the case here is the outgoing sync script for Salesforce:
def id=entity.Id
def allc = httpClient.get(“/services/data/v54.0/sobjects/Case/${id}/CaseComments”)
double comment_size_d=allc.totalSize
int comment_size = comment_size_d.intValue();
def allComments=allc.records
def SFComments=allComments.collect
{
c->
def comment = commentHelper.addComment(c.CommentBody, ).find()
def internal=true
if(c.IsPublished)
{
internal=false
}comment.internal = internal comment.id = c.Id comment.created=null def authorUser=new com.exalate.basic.domain.hubobject.v1.BasicHubUser() authorUser.setKey(c.CreatedById) comment.author=authorUser comment } //replica.comments=issue.comments replica.comments=SFComments.findAll{!it.internal}
Kindly explain in more detail in case your use case is different.
Thanks,
Sonal