Script to add row in Chat field

Hi there,

I wonder if I can add some text to chat field by using some script?


Hello, Thomas,

yes, you can use console.log to write out the object and then you can write JS according to it.

Have a nice day.

With kind regards,

Thank you. Well I am not sure how to proceed…


Hello Thomas,

if you press F12, you can see what you can use for JS. I also send you this JS:

 const existingRecord = await doo.table.getRecord('table1',;
    const fields = {
        chatTest: {
            "lastChange": new Date().toISOString().substring(0, 20),
            "messages": []
    if ( {
        fields.chatTest.messages =;
    const message = {
        "author": "",
        "authorName": "",
        "created": new Date().toISOString().substring(0, 20),
        "text": "Text 1"
    const x = await doo.table.updateFields('table1',, fields);
    console.log('', x);

I hope that helped :slight_smile:

With kind regards,