1 min read
Part 23: Add data broker to save comments
Add Data Broker to add comments
- Goto Data resources
- Click + Add
- Search with keyword insert knowledge
- Select Insert knowledge comment
- Click Add
Add Event to Nested comments component
- 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
- Comment content –
- 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.