---
schema_version: "1"
id: 93ad4bbc1c48257fa5d54e0449b2b1c63a5eae3c9d03124bd55b54d022fcf508
title: ConnectApi.Target
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_target.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_target.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8d06ff800fa64c40c3db0d01c2db9105cd609a9c944119255c264d124fa33ed6
description: Personalization target information.
---
# ConnectApi.Target

Personalization target information.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d1237046e27">Property Name</th>
              <th class="featureTableHeader vertical-align-top " id="d1237046e29">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d1237046e31">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d1237046e33">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d1237046e27" data-title="Property Name"><samp class="codeph apex_code">audience</samp></td>

              <td class="entry" headers="d1237046e29" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_audience_target.htm" title="Personalization audience assigned to a target."><samp class="codeph apex_code">ConnectApi.​AudienceTarget</samp></a></td>

              <td class="entry" headers="d1237046e31" data-title="Description">Audience assigned to the target.</td>

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

            </tr>

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

              <td class="entry" headers="d1237046e29" data-title="Type"><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."><samp class="codeph apex_code">ConnectApi.​FormulaScope</samp></a></td>

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

              <td class="entry" headers="d1237046e33" data-title="Available Version">50.0</td>

            </tr>

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

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

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

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

            </tr>

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

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

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

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

            </tr>

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

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

              <td class="entry" headers="d1237046e31" 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="d1237046e33" data-title="Available Version">48.0</td>

            </tr>

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

              <td class="entry" headers="d1237046e29" 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="d1237046e31" 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="d1237046e33" data-title="Available Version">48.0</td>

            </tr>

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

              <td class="entry" headers="d1237046e29" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list" title="Contains methods for the List collection type.">List</a>&lt;<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_scope.htm" title="Scope information for a target."><samp class="codeph apex_code">ConnectApi.​Scope</samp></a>&gt;
              </td>

              <td class="entry" headers="d1237046e31" data-title="Description">List of scopes for the target.<p class="p">In version 50.0 and later, the <samp class="codeph nolang">formulaScope</samp> property returns this information.</p>
              </td>

              <td class="entry" headers="d1237046e33" data-title="Available Version">48.0–49.0</td>

            </tr>

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

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

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

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

            </tr>

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

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

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

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

            </tr>

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

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

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

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

            </tr>

          </tbody>
        </table>

#### See Also

- [ConnectApi.TargetCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_target_collection.htm "List of personalization targets.")