---
schema_version: "1"
id: cd545b622f8591fb06dfc5f265c6d2ef3f77c72cc69e3e8a2a8dbd169f61c9c6
title: ConnectApi.RecordCapability
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_record_capability.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_record_capability.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: cb79a1a21555645d3692f73cf34495f0b0e6e21c5920d819694c7e7eb91d8059
description: If a comment has this capability, it has a record attachment.
---
# ConnectApi.RecordCapability

If a comment has this capability, it has a record attachment.

Subclass of [ConnectApi.FeedElementCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element_capability.htm "A feed element capability, which defines the characteristics of a feed element.").

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| recordId | String | ID of the record. | 42.0 |
| url | String | URL to the record. | 42.0 |