---
schema_version: "1"
id: e850db5c1e4b7d6d25a88f639e325ae9c3955f8eb02f76758d49e4f5d225e58c
title: ConnectApi.MentionValidation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_mentionValidation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_mentionValidation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a4909912af7a72804888f67e52b3d63673a405066a6e08e4d13223942fae0de4
description: Information about whether a proposed mention is valid for the context user.
---
# ConnectApi.MentionValidation

Information about whether a proposed mention is valid for the context user.

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d1078615e47">Name</th>

              <th class="featureTableHeader vertical-align-top " id="d1078615e50">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d1078615e53">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d1078615e56">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d1078615e47" data-title="Name"><samp class="codeph apex_code">recordId</samp></td>

              <td class="entry" headers="d1078615e50" data-title="Type">String</td>

              <td class="entry" headers="d1078615e53" data-title="Description">The ID of the mentioned record.</td>

              <td class="entry" headers="d1078615e56" data-title="Available Version">29.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d1078615e47" data-title="Name"><samp class="codeph apex_code">validationStatus</samp></td>

              <td class="entry" headers="d1078615e50" data-title="Type">
                <samp class="codeph apex_code">ConnectApi.​MentionValidation​Status</samp>
                Enum
              </td>

              <td class="entry" headers="d1078615e53" data-title="Description">Type of validation error for a proposed mention, if any.<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph apex_code">Disallowed</samp>—The proposed mention is invalid and is rejected because the context user is trying to mention something that is not allowed. For example, a user who is not a member of a private group is trying to mention the private group.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Inaccessible</samp>—The proposed mention is allowed, but the user or record being mentioned isn’t notified. They don't have access to the parent record that’s being discussed.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Ok</samp>—There is no validation error for this proposed mention.
                  </li>
                </ul>
              </td>

              <td class="entry" headers="d1078615e56" data-title="Available Version">29.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [ConnectApi.MentionValidations](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_mentionValidations.htm "Information about whether a set of mentions is valid for the context user.")