Customer Portal

Get Involved. Join the Conversation.

Topic

    chidambaram CT
    View custom object - Notes column in the consoleAnswered
    Topic posted April 8, 2019 by chidambaram CTBronze Trophy: 5,000+ Points 
    58 Views, 2 Comments
    Title:
    View custom object - Notes column in the console
    Summary:
    View Notes column in custom object
    Content:

    I have created notes column of data type 'Notes' in custom object SLAHistory. SLAhistory is linked to incident table.

    I have used following PHP code to update notes column in SLAHistory Custom Object 

                $thread = new Connect\Thread();
                $thread->Text = $slanotes;
                $thread->EntryType = new Connect\NamedIDOptList();
                $thread->EntryType->ID = 2;
                $SLAHistory->Threads[] = $thread;
                $SLAHistory->save();

    No error.  How to view updated notes field in the console?  I can't add notes field in the report or it is also
    not showing in workspace.

    Any help on this is very much appreciated.

    Image:
    Document:

    Best Comment

    Suresh Thirukoti

    I think you have done for Threads which is exclusive to Incidents Response but not Notes object like below

    1. $object->Notes = new RNCPHP\NoteArray();
    2. $object->Notes[0] = new RNCPHP\Note();
    3. $object->Notes[0]->Channel = new RNCPHP\NamedIDLabel();
    4. $object->Notes[0]->Channel->LookupName = "Email";
    5. $object->Notes[0]->Text = "Sample Notes -1";

    http://documentation.custhelp.com/euf/assets/devdocs/cloud19a/Connect_PHP/Content/Connect%20for%20PHP%20API/RightNow%20Connect%20Object%20Model/Core/Note.html

    ~Suresh

    Comment

     

    • Suresh Thirukoti

      I think you have done for Threads which is exclusive to Incidents Response but not Notes object like below

      1. $object->Notes = new RNCPHP\NoteArray();
      2. $object->Notes[0] = new RNCPHP\Note();
      3. $object->Notes[0]->Channel = new RNCPHP\NamedIDLabel();
      4. $object->Notes[0]->Channel->LookupName = "Email";
      5. $object->Notes[0]->Text = "Sample Notes -1";

      http://documentation.custhelp.com/euf/assets/devdocs/cloud19a/Connect_PHP/Content/Connect%20for%20PHP%20API/RightNow%20Connect%20Object%20Model/Core/Note.html

      ~Suresh

    • chidambaram CT

      Great Suresh. Thank you.