Updating Related Record on Case (Case Add Comments)

Updating Related Record on Case (Case Add Comments)

I am trying to update a related record on cases.  Specifically, I want to add a comment to the Add Comment area on the case.  It seems like that field is in a solution record that is related to the case, and trying to pull the id out to update the Add Comment field on the associated Solution record.

Any help much appreciated!

  1. if((input.ZC_Subject.contains("Case#: ")))

    {

        input.Case_ID=(input.ZC_Subject).subString(11,29);

        input.Case_Response=(input.ZC_Content).subString(0,(input.ZC_Content).indexOf("---------------------------"));

        crmResp = zoho.crm.getRelatedRecords("Solutions","Cases",input.Case_ID);

        //currentid = crmResp.get(0);

        //zoho.crm.updateRecord("Solutions",currentid.toString(),{ "Add Comment" : ""});

    }