# Enable nominate Contacts for your program

## Architecture (at a glance)

* **Screen Flow** → captures user input and creates a nomination record
* **Custom Object** → stores the nomination data
* **Record-Triggered Flow** → sends the nomination data to SlapFive
* **Outbound Message** → delivers the nomination data to the SlapFive integration server to trigger the automated workflow
* **Automated Workflow** → processes the nomination

## How to set it up

Determine the Contact and Account fields that you want to send to SlapFive with the nomination. The required Contact fields are First Name, Last Name, Email, and Account Name. You may also want to send the Contact's Title, location or address, and any other fields from the Contact or its Account that can help you engage that customer as a Member in SlapFive.

### Step 1: Create the Custom Object (one-time setup)

Go to **Setup → Objects and Fields → Object Manager** and click **Create →Custom Object.**

**Object Name:** `SlapFive Nomination`\
**API Name:** `SlapFive_Nomination__c`

#### Create the following fields and save the object:

1. **Contact**
   * Type: Lookup (Contact)
   * API Name: `Contact__c`
   * Required: Yes
2. **Nomination Reason**
   * Type: Long Text Area (32,768)
   * API Name: `Nomination_Reason__c`
   * Required: Yes
3. **Submitted By**
   * Type: Lookup (User)
   * API Name: `Submitted_By__c`
   * Required: Optional but recommended
4. **Status**
   * Type: Picklist
   * API Name: `Status__c`
   * Values:
     * Submitted
     * Processed
     * Error
   * Default Value: `Submitted`&#x20;

#### Object Permissions

Users who will submit nominations must have permission to create records for the SlapFive Nomination object.

This can be done by adding Create permission for the SlapFive\_Nomination\_\_c object in the user’s Profile or a Permission Set.

Alternatively, administrators can configure the Screen Flow to run in system context so that users do not need direct object permissions.

### Step 2: Create the Outbound Message

Go to **Setup → Outbound Messages → New Outbound Message.**

* **Object:** SlapFive Nomination
* **Endpoint URL:** *Provided by SlapFive*
* **User to Send As:** Automated Process

Select **Fields to Send**:

* Record Id
* Contact\_\_c
* Nomination\_Reason\_\_c
* Submitted\_By\_\_c
* Status\_\_c
* CreatedDate

Save and **Activate** the Outbound Message.

### Step 3: Create the Record-Triggered Flow

Go to **Setup** → **Flows** → **New Flow** and select **Record-Triggered Flow**.

#### Configure the Flow:

* **Object:** SlapFive\_Nomination\_\_c
* **Trigger the Flow When:** A record is created
* **Optimize the Flow For:** Actions and Related Records (After Save)

#### Add an Action element:

* **Action Type:** Send Outbound Message
* Select the Outbound Message you created in the previous step.
* **Label:** Send SlapFive Nomination

Save and **Activate** the Flow.

### Step 4: Create the Screen Flow

Go to **Setup → Flows → New Flow → Screen Flow,** create the variable and add these elements, then Save and **Activate** the Flow.&#x20;

#### Create a Variable to receive the Contact Id automatically:

* **API Name:** `recordId`
* **Data Type:** Text
* **Available for Input:** ✅

#### Add a ***Screen*** element:

* **Long Text Area**
  * Label: The question you want to ask, such as *Why are you nominating this contact?*
  * API Name: `nominationReason`
  * Required: ✅

#### Add a *Create Records* element

* **Label:** `Create SlapFive Nomination`
* **API Name:** `Create_SlapFive_Nomination`
* **How many records to create:** select One
* **How to set record field values:** select Manually
* **Object:** SlapFive\_Nomination\_\_c
* **Set Field Values:** Map the fields like this:
  * Contact\_\_c = `{!recordId}`
  * Nomination\_Reason\_\_c = `{!nominationReason}`
  * Submitted\_By\_\_c = `{!$User.Id}`
  * Status\_\_c = `Submitted`

This record creation triggers the Outbound Message automatically.

#### (Optional) Confirmation Screen

Add a final Screen:

* Message: *Nomination submitted successfully.*

### Step 5: Add the Screen Flow to the Contact Page

Go to **Object Manager → Contact → Page Layouts**

1. Open the desired page layout.
2. In **Salesforce Mobile and Lightning Experience Actions**, drag **Flow.**
3. Select the Screen Flow you just created.
4. Save

### Step 6: Submit a test nomination

Go to a Contact record, click the new Nomination button, and let your SlapFive Coach know so we can do the final configurations and activate the automation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.slapfive.com/integrations/salesforce/salesforce-automations/enable-nominate-contacts-for-your-program.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
