---
schema_version: "1"
id: 0301f98f42b434e8d2c6e78ec9bac0715cd8e7b1ac83b2120e916d828c451bb0
title: ConnectApi.RecordCapabilityInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_record_capability.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_record_capability.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 01c6cebc26bb0648c96b8b7f3c45c2940f089f32aceaf316a80b85018c66742a
description: Attach an existing knowledge article to a comment.
---
# ConnectApi.RecordCapabilityInput

Attach an existing knowledge article to a comment.

This class is a subclass of [ConnectApi.FeedElementCapabilityInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_feed_element_capability.htm#apex_connectapi_input_feed_element_capability "A feed element capability.").

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| recordId | String | ID of the existing knowledge article to attach. | Required | 42.0 |