---
schema_version: "1"
id: e9016117e186268046309ad08540715a112092d78e62c9b503383ae427815971
title: Swarming | Complete Swarm Records
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_ref_swarming_complete_swarm_record.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_swarming_complete_swarm_record.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f025ac5c1ee23b06d28ce71224feccc16139265619dc5eb24bb2dae69ba51c62
description: Sets the status of Swarm and Swarm Member records to Closed and sets completion timestamps.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Swarming | Complete Swarm Records

Sets the status of Swarm and Swarm Member records to Closed and sets completion timestamps.

### 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>,&nbsp;<strong>Performance</strong>, and&nbsp;<strong>Unlimited</strong>&nbsp;Editions with the Einstein for Service add-on</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
      <colgroup>
        <col>
        <col>
      </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="d165906e82">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d165906e82 ">To execute actions in Agentforce (Default):</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d165906e82 ">Use Agentforce Default Agent</td>

        </tr>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d165906e82 ">To use prompt templates:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d165906e82 ">Prompt Template User</td>

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

## Action Details

<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><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">API Name</td><td class="slds-cell-wrap" style="vertical-align:top;">CompleteSwarmRecords</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Standard</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Standard Action</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Inputs</td><td class="slds-cell-wrap" style="vertical-align:top;">recordId, swarmId</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Outputs</td><td class="slds-cell-wrap" style="vertical-align:top;">collaborationAppId, errorMessage</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Does this action execute one or more prompt templates?</td><td class="slds-cell-wrap" style="vertical-align:top;">No</td></tr></tbody></table>