---
schema_version: "1"
id: 03d62b876b887e2e2982b68ab8ef1e2a15efc37717ac1f49376864a08b4f981d
title: Public Sector | Get Relevant Regulatory Codes
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_ref_pss_get_relevant_regulatory_codes.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_pss_get_relevant_regulatory_codes.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7581a8b4ab5f330ce7c241852c4be41115f78e8cbd35eab2ba1e1b28d77e6e24
description: Gets the regulatory codes that could be violated by the incident reported in a public complaint.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Public Sector | Get Relevant Regulatory Codes

Gets the regulatory codes that could be violated by the incident reported in a public complaint.

### 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 the Agentforce for Public Sector add-on or included in Public Sector for Agentforce 1 Service Edition. Requires each user to have the Agentforce for Public Sector add-on to access the action.</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="d118635e70">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d118635e70 ">To use the Get Relevant Regulatory Codes action:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d118635e70 ">
            <p>Public Sector Access permission set</p>
            <p>AND</p>
            <p style="margin-bottom:0;">Agentforce for Public Sector permission set</p>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d118635e70 ">See <a href="https://help.salesforce.com/s/articleView?id=ai.agent_actions_common_perms.htm&amp;type=5&amp;language=en_US" target="_blank">Common User Access for Standard Agent Actions</a>.</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;">GetRelevantRegulatoryCodes</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;">Prompt Template</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Reference Action</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Get Relevant Regulatory Codes (pss_agent__GetRelevantRegulatoryCodes)</p>
            </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;">Yes</td>

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

## Get Relevant Regulatory Codes Prompt Template

This action uses the Get Relevant Regulatory Codes prompt template to get the Salesforce record IDs of regulatory codes that could be violated by the incident reported in a complaint. The prompt template passes the keywords in the Complaint Summary field of the input public complaint record to a search retriever. The retriever finds and returns a list of regulatory code records that match the complaint's keywords. The prompt template returns the Salesforce record IDs of the regulatory code records.

#### See Also

- [Complaint Resolution with Agentforce](https://help.salesforce.com/s/articleView?id=ind.psc_complaint_resolution_with_agentforce.htm&language=en_US)