From the content section, select Nested comments 1 component we created in the last post
From configurations, Select event
Click + Add a new event handler
Select Insert knowledge comment 1 > Execute
Comment content – @payload.content
Article ID – @context.props.sysId
Parent ID – @payload.parentId
Click Apply and Save
Please check highlighted areas to make sure the configuration is correct
Result
Open https://<instance-name>.service-now.com/now/panda_tech/knowledge-article/params/sys-id/f27d7f79c0a8011b0018f9d700d2b9aa
Add Comment
Navigate to kb_feedback to see if the comment is inserted correctly
Great!! We have successfully added comments to the kb_feedback table. Next Post we will talk about how to refresh data broker with the latest comment we added.
Part 23: Add data broker to save comments
30 sec read
Add Data Broker to add comments
Add Event to Nested comments component
content section, select Nested comments 1 component we created in the
last post@payload.content
@context.props.sysId
@payload.parentId
Result
https://<instance-name>.service-now.com/now/panda_tech/knowledge-article/params/sys-id/f27d7f79c0a8011b0018f9d700d2b9aa
kb_feedback
to see if the comment is inserted correctlyGreat!! We have successfully added comments to the kb_feedback table. Next Post we will talk about how to refresh data broker with the latest comment we added.