Loading
Program Management Module Managed Package
PMM Customize Process Builder Automation

PMM Customize Process Builder Automation

Customize your Program Engagement and Service Delivery naming.

  • Customize Program Engagement Naming
    When a user creates a Program Engagement, its name follows the format Contact Name Start Date: Program Name unless otherwise specified. For Program Engagements without Contacts, the default naming format is Anonymous Start Date: Program Name.
  • Customize Service Delivery Naming
    When a user creates a Service Delivery, its name follows the format Contact Name Start Date: Service unless otherwise specified.

Customize Program Engagement Naming

When a user creates a Program Engagement, its name follows the format Contact Name Start Date: Program Name unless otherwise specified. For Program Engagements without Contacts, the default naming format is Anonymous Start Date: Program Name.

You may want to customize your Program Engagement naming. Here are some examples.

  • If the majority of your Program Engagements don't include Contacts, omit the word “Anonymous” from the automated Program Engagement name. For example, rather than Anonymous 2020-06-17: Hygiene Kits, the Program Engagement name could be 2020-06-17: Hygiene Kits.

  • If the majority of your Program Engagements reference the Account object, include the Account name in the automated Program Engagement name. For example, if your organization provides services to households, schools, or other nonprofits, your Program Engagements should include the Account name, such as California Nonprofit Association 2020-06-17: DEI Coaching.

  • If the majority of your Program Engagements reference a custom object, include the custom object name in the automated Program Engagement name. For example, if you work with a nonprofit organization that provides spay and neuter services for pets tracked in a custom object called Pets, you might have a Program Engagement named Buck 2020-07-10: Neuter.

To customize Program Engagement automated naming:

  1. Click Setup gear icon, then click Setup.

  2. Enter Process Builder in the Quick Find box, then click Process Builder.

  3. Click Chevron icon to expand Template: Program Engagement Object.

  4. Click the Active version of the Template. 

  5. Click Clone.

    • Select A new process.
    • Name the process and optionally provide a description.

    • Click Save.

  6. Next to the Update Name step, under Immediate Actions, click Update Name, then:

  7. Click Use this Formula.

  8. Click Save.

  9. Click Activate to enable the change.

Remove "Anonymous" From Auto-Naming

To remove the word “Anonymous” from Program Engagements without Contacts, follow the instructions above, and copy and paste this code in the Value field, customizing as needed.

IF(NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__Contact__c)),IF(
LEN(
[pmdm__ProgramEngagement__c].pmdm__Contact__c.FirstName  + ' ' + [pmdm__ProgramEngagement__c].pmdm__Contact__c.LastName + ' ' +
IF(
NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10 ))+
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name) > 77,
LEFT(([pmdm__ProgramEngagement__c].pmdm__Contact__c.FirstName  + ' ' + [pmdm__ProgramEngagement__c].pmdm__Contact__c.LastName + ' ' +
IF (NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10)) +
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name),77)
+ '...', [pmdm__ProgramEngagement__c].pmdm__Contact__c.FirstName  + ' ' + [pmdm__ProgramEngagement__c].pmdm__Contact__c.LastName + ' ' +
IF(
NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10 ))+
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name
),
IF(
LEN(
IF(
NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10 ))+
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name) > 77,
LEFT((IF (NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10)) +
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name),77)
+ '...',
IF(
NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10 ))+
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name
))

Add Account or Custom Object To Auto-Naming

To include an Account or custom object in Program Engagement naming, follow the instructions above and copy and paste this code in the Value field, customizing as needed. If you're referencing a custom object, be sure to update this code for the custom object.

IF(NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__Account__c)),IF(
LEN(
[pmdm__ProgramEngagement__c].pmdm__Account__c.Name + ' ' +
IF(
NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10 ))+
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name) > 77,
LEFT(([pmdm__ProgramEngagement__c].pmdm__Account__c.Name + ' ' +
IF (NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10)) +
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name),77)
+ '...', [pmdm__ProgramEngagement__c].pmdm__Account__c.Name + ' ' +
IF(
NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10 ))+
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name
),
IF(
LEN(
IF(
NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10 ))+
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name) > 77,
LEFT((IF (NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10)) +
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name),77)
+ '...',
IF(
NOT(ISBLANK([pmdm__ProgramEngagement__c].pmdm__StartDate__c)),  TEXT([pmdm__ProgramEngagement__c].pmdm__StartDate__c) , LEFT(TEXT([pmdm__ProgramEngagement__c].CreatedDate),10 ))+
': ' + [pmdm__ProgramEngagement__c].pmdm__Program__c.Name
))

Customize Service Delivery Naming

When a user creates a Service Delivery, its name follows the format Contact Name Start Date: Service unless otherwise specified.

If the default naming works for your organization, no further customization is needed. However, you may want to customize your Service Delivery naming.

  1. Click Setup gear icon, then click Setup.

  2. Enter Process Builder in the Quick Find box, then click Process Builder.

  3. Click Chevron icon to expand the Template: Service Delivery Object.

  4. Click the Active version of the Template. 

  5. Click Clone.

    • Select A new process.
    • Name the process and optionally provide a description.

    • Click Save.

  6. Next to the AutoName step, under Immediate Actions, click UpdateServiceDelivery.

    Service Delivery Object template showing UpdateServiceDelivery
  7. Paste your formula in the Value field.

  8. Click Use this Formula.

  9. Click Save.

  10. Click Activate.

 
Wordt geladen
Salesforce Help | Article