---
schema_version: "1"
id: e7157408e0b26616c607409c68834cc42287ec412e1aeedb325ec984b3d5e442
title: Set Up Outreach Source Codes in Nonprofit
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sfdo/264-0-0/fundraising_set_up_outreach_source_codes.md
canonical_url: https://help.salesforce.com/s/articleView?id=sfdo.fundraising_set_up_outreach_source_codes.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0eae30a79f1eee8e43d5f75d78cdb6fa1e361e5e0c6aa6e66ea5206f025e1b8a
description: Set the outreach source code parameters and generation formula.
products:
  - Nonprofit
release: "264"
---
# Set Up Outreach Source Codes in Nonprofit

Set the outreach source code parameters and generation formula.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
        <colgroup>
          <col style="width:100%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d22480e42">REQUIRED EDITIONS</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="REQUIRED EDITIONS" class="slds-cell-wrap" style="vertical-align:top;" headers="d22480e42 ">Available in: Lightning Experience</td>

          </tr>
          <tr class="">
            <td data-label="REQUIRED EDITIONS" class="slds-cell-wrap" style="vertical-align:top;" headers="d22480e42 ">
              <p style="margin-bottom:0;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and
                <strong>Developer</strong> Editions with Nonprofit Cloud
              </p>
            </td>

          </tr>
        </tbody>
      </table> <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="d22480e87">User Permissions Needed</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d22480e90">&nbsp;</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d22480e87 ">To set up outreach source codes:</td>

            <td data-label="" class="slds-cell-wrap" style="vertical-align:top;" headers="d22480e90 ">
              <p style="margin-bottom:0;" dir="ltr">Fundraising_Admin permission set group</p>
            </td>

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

1. From Setup, in the Quick Find box, enter Fundraising, and then select **Outreach Source Codes**.
2. To set the parameters for unique outreach source code URLs, set custom objects and fields for the UTM Source, UTM Medium, and UTM Campaign parameters. Though you can select your preferred settings, the suggested settings are:
    - For UTM Source, select Outreach Source Code for the custom object and SourceCode for the custom field.
    - For UTM Medium, select Outreach Source Code for the custom object and MessageChannel for the custom field.
    - For UTM Campaign, select Campaign for the custom object and Id for the custom field.
3. Turn on Outreach Source Code Generation.
    
    The Code Formula Structure section opens.
4. Set the outreach source code formula structure.
    1. Select the reference fields that you want to use in the code.
    2. Choose the function category for the code generation formula.
    3. Select the function for the formula.
        
        If a function isn’t available in the list, use a custom formula field that has access to all functions, and reference that custom field in the formula editor.
    4. Choose an operator for the formula.
        
        This formula determines how the automatically generated source codes are structured. For example, to automatically generate source codes that identify the platform for the message channel and the campaign name, use this formula:
        
        IF(ISBLANK({MessageChannelPlatform}), {Campaign.Name}, {MessageChannelPlatform}) + SUBSTR({Name}, 0, 4). Using this formula, the outreach via an Instagram® ad for the Chameleon Fun Run campaign generates InstagramCham for the outreach source code.
5. Continue to add references, functions, and operators until your formula contains all the information that you want to capture in the code.
6. To confirm that your formula is valid, click **Validate Syntax**.
    
    If there are errors in your syntax, fix your formula before you save the formula.
7. Save your changes.
    
    Outreach source codes are now generated automatically and are formatted according to your selections.