---
schema_version: "1"
id: 26b94cca9bf533f33d7b1fb8c634267bed144ce2fc739346f568b87604896431
title: ConnectApi.AudienceTargetAssignment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_audience_target_assignment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_audience_target_assignment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 58c8c03315d0bce4018705bf7dd4f05cb59c368c5112ebf8c9cdf34e016eb1fd
description: Target assignments for a personalization audience.
---
# ConnectApi.AudienceTargetAssignment

Target assignments for a personalization audience.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d814041e27">Property Name</th>
              <th class="featureTableHeader vertical-align-top " id="d814041e29">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d814041e31">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d814041e33">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">formulaScope</samp></td>

              <td class="entry" headers="d814041e29" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_formula_scope.htm" title="Formula scope for a target.">ConnectApi.​FormulaScope</a></samp></td>

              <td class="entry" headers="d814041e31" data-title="Description">Formula scope of the target.</td>

              <td class="entry" headers="d814041e33" data-title="Available Version">51.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">groupName</samp></td>

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

              <td class="entry" headers="d814041e31" data-title="Description">Group name of the target. Groups bundle related target and audience pairs.</td>

              <td class="entry" headers="d814041e33" data-title="Available Version">48.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">id</samp></td>

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

              <td class="entry" headers="d814041e31" data-title="Description">ID of the target.</td>

              <td class="entry" headers="d814041e33" data-title="Available Version">48.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">isMatch</samp></td>

              <td class="entry" headers="d814041e29" data-title="Type">Boolean</td>

              <td class="entry" headers="d814041e31" data-title="Description">Specifies whether the target matches the current context (<samp class="codeph nolang">true</samp>) or doesn’t (<samp class="codeph nolang">false</samp>).</td>

              <td class="entry" headers="d814041e33" data-title="Available Version">48.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">priority</samp></td>

              <td class="entry" headers="d814041e29" data-title="Type">Integer</td>

              <td class="entry" headers="d814041e31" data-title="Description">Priority of the target. Within a group, priority determines which target is returned if the user matches more than one audience.</td>

              <td class="entry" headers="d814041e33" data-title="Available Version">48.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">publishStatus</samp></td>

              <td class="entry" headers="d814041e29" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/connectAPI_enums.htm#PublishStatusEnum"><samp class="codeph apex_code">ConnectApi.​PublishStatus</samp></a></td>

              <td class="entry" headers="d814041e31" data-title="Description">Publish status of the target. Values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Draft</samp></li>
                  <li class="li"><samp class="codeph nolang">Live</samp></li>
                </ul>
              </td>

              <td class="entry" headers="d814041e33" data-title="Available Version">48.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">targetType</samp></td>

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

              <td class="entry" headers="d814041e31" data-title="Description">Type of target, indicating the nature of the data being targeted.</td>

              <td class="entry" headers="d814041e33" data-title="Available Version">48.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">targetValue</samp></td>

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

              <td class="entry" headers="d814041e31" data-title="Description">Value of the target.</td>

              <td class="entry" headers="d814041e33" data-title="Available Version">48.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d814041e27" data-title="Property Name"><samp class="codeph apex_code">url</samp></td>

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

              <td class="entry" headers="d814041e31" data-title="Description">URL to the target.</td>

              <td class="entry" headers="d814041e33" data-title="Available Version">48.0</td>

            </tr>

          </tbody>
        </table>

#### See Also

- [ConnectApi.Audience](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_audience.htm "A personalization audience.")