Resolve a Comment
Resolve a comment.
Resolve Comment
Resolves a comment associated with a record.
resolve_comment(commentId: ID, status: boolean): Promise<Comment>;
Parameter Name | Type | Description |
---|---|---|
commentId | string | The Comment Id. |
status | boolean | Set true to resolve the comment. |
Example Script - Resolve Comment
<!--resolve_comment(commentId: ID, status: boolean): Promise<Comment>;-->
<script>
window.SmartSuite.resolve_comment('67649e7c9d8ae62e23b556ba', true).then((res) => {
console.log('result =>>>', res);
});
</script>
Response
200 Ok
{
"id": "67649e7c9d8ae62e23b556ba",
"application": "67647d9b7a03fad7da12d9f2",
"assigned_to": null,
"created_on": "2024-12-19T22:30:20.422000Z",
"deleted_on": null,
"followers": [
"63a1f65723aaf6bcb564b1f1"
],
"key": 1,
"member": "63a1f65723aaf6bcb564b1f1",
"message": {
"data": {
"type": "doc",
"content": [
{
"type": "paragraph",
"attrs": {
"textAlign": "left",
"size": "medium"
},
"content": [
{
"type": "text",
"text": "This is a test"
}
]
}
]
},
"html": "<div class=\"rendered\">\n <p class=\"align-left\" >This is a test</p>\n</div>",
"preview": ""
},
"parent_comment": null,
"reactions": [],
"record": "67647dd4b4761f19a7b55692",
"resolved_by": "63a1f65723aaf6bcb564b1f1",
"solution": "67647d9b7a03fad7da12d9f0",
"updated_on": null,
"type": "comment",
"email": null,
"field_slug": null
}