---
schema_version: "1"
id: f90d5a236d40f02087314399750e72b201857eff40ae338eed00048d14ee0789
title: Public Sector | Create Regulatory Code Violation
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_ref_pss_create_regulatory_code_violation.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_pss_create_regulatory_code_violation.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f8b1486d7d2aef7011caca8747fd5fd9eb85da8288f9989e69613f515b08339a
description: Creates a regulatory code violation record.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Public Sector | Create Regulatory Code Violation

Creates a regulatory code violation record.

### 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="d128945e70">User Permissions
            Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d128945e70 ">To execute actions in the Compliance Management agent:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d128945e70 ">Public Sector Access</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d128945e70 ">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;">ChkForRegulatoryCodeViolation</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;">Flow</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>Create Regulatory Code Violation</p>
              <p style="margin-bottom:0;">(CreateRegulatoryCodeViolation)</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;">No</td>
          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Required Setup</td>
            <td class="slds-cell-wrap" style="vertical-align:top;">Compliance Management with Agentforce</td>
          </tr>
        </tbody>
      </table>