---
schema_version: "1"
id: 1591793c6156ae3dbb669502ca12c4deae1733985d4a90e4dba7f4e779f46f09
title: ConnectApi.MentionValidations
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_mentionValidations.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_mentionValidations.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ae88a63dd8bd30c528fc30b39f96c7c5472dcd3379b923ffbb6582e72d995c78
description: Information about whether a set of mentions is valid for the context user.
---
# ConnectApi.MentionValidations

Information about whether a set of mentions is valid for the context user.

| Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| hasErrors | Boolean | Indicates whether at least one of the proposed mentions has an error (true), or not (false). For example, context users can’t mention private groups they don’t belong to. If such a group is included in the list of mention validations, hasErrors is true and the group has a validationStatus of Disallowed in its mention validation. | 29.0 |
| mentionValidations | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.MentionValidation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_mentionValidation.htm#apex_connectapi_output_mentionValidation "Information about whether a proposed mention is valid for the context user.")\> | List of mention validation information in the same order as the provided record IDs. | 29.0 |