---
schema_version: "1"
id: f8b7789975c1978518e77c6a51d6dbbe95c02daaf0e9b67457cfb0de2c4b4024
title: Get Members' Active Segments
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/loyalty_promotion_action_member_segment.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.loyalty_promotion_action_member_segment.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 66830b7012434d7aaa3d47305fa1f53218d08cd7a05d21f9a3c88c495b631450
description: Use the Get Member's Active Segments action in flows to get the list of active Data Cloud segments to which members belong. You can use this action in flows that reward members based on their segment.
products:
  - Loyalty Management
release: "264"
---
# Get Members' Active Segments

Use the Get Member's Active Segments action in flows to get the list of active Data Cloud segments to which members belong. You can use this action in flows that reward members based on their segment.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Loyalty Management - Growth or Loyalty Management - Advanced</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d20907e72">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d20907e72 ">To create a flow:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d20907e72 ">Manage Flows</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d20907e72 ">To access Loyalty Management actions in Flows:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d20907e72 ">Loyalty Management</td>

          </tr>
        </tbody>
      </table>

Before you use this action, make sure that you activate your market segments and associate them with members.

To get a member's active market segments, enter these values.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d20907e121">Input</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d20907e124">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input" class="slds-cell-wrap" style="vertical-align:top;" headers="d20907e121 ">Loyalty Program Member ID</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d20907e124 ">ID of the member for whose active market segments that you want to get.</td>

          </tr>
          <tr class="">
            <td data-label="Input" class="slds-cell-wrap" style="vertical-align:top;" headers="d20907e121 ">Segment IDs</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d20907e124 ">
              <p>Optional. Market Segment records to find the segments to which the member
                belongs. </p>
              <p style="margin-bottom:0;">When segment ID isn't specified, the action returns segments from the
                default data space.</p>
            </td>

          </tr>
        </tbody>
      </table>

When finding a member’s Data Cloud segment, the action only considers segments when the segment:

- Last publish status is Success
- Last publish date is closest to the segment’s last processed date
- Isn’t being refreshed
- Is synced

1. From Setup, in the Quick Find box, enter Flows, and then select **Flows**.
2. Click **New Flow**.
3. Select a flow type, and then click **Next**.
4. Click +.
5. Select **Action**.
6. In the Category section, select **Loyalty**.
7. Search for and select the **Get Member's Active Segments** action.
8. For the action, enter a name and an API name.
9. In the Loyalty Program Member ID field, either enter the member's record ID or use a resource to populate Loyalty Program Member IDs.
10. If you want to specify Market Segment records, include Segment IDs and use a resource to specify the records.
11. Click **Done**.
12. Save your changes, and then activate the flow.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/images/icon_example.png)

Example

The Cloud Kicks Inner Circle loyalty program issues a 5% discount voucher for sports shoes to Sports Enthusiast segment members whenever they make a purchase. The Get Members' Active Segments action is used in the flow that credits points to members. After the flow credits points to a member, the action is provided the member's ID and Sports Enthusiast Market Segment record. If the Sports Enthusiast Market Segment record is provided as the output of the action, the flow issues the 5% sports shoe discount voucher to the member.