Create a new comment on an object.
This skill ONLY handles: Creating a new comment on an object in NovaDB.
For updating existing comments → use update-comment
Create a new comment on an object in NovaDB.
Note: NovaDB object IDs start at 2²¹ (2,097,152). All IDs in examples below are samples — always use real IDs from your system.
novadb_cms_create_comment — Create the commentnovadb_cms_get_comment — Fetch the created comment (required follow-up){
"branchId": 2100347,
"objectRef": 12345,
"body": "<div>My comment text</div>",
"username": "jdoe"
}
branchId — Branch ID (number, required)objectRef — Object ID to comment on (number, required)body — Comment body as XHTML (string, required, see body rules below)username — (optional) Acting username for auditThe comment body must be valid XHTML with a <div> root element.
<div>user text here</div><div> or <div , use it as-is"<div>Great work!</div>"<div> if needed)novadb_cms_create_comment with the XHTML body{ id } — not the full commentnovadb_cms_get_comment with the returned id to fetch the full commentThe create call returns { id }. After fetching, the full comment includes id, body, branch, object reference, author, timestamps, etc.
Comment body must be valid XHTML with a <div> root element. Wrap plain text as <div>user text</div>.
Returns { id }. Use the ID with get-comment to fetch the full comment data.