Skip to main content

#Custom Lookup Field0 utenti parlano di questo argomento

We're having issues using the Recipient Merge field when sending emails from a Case within the UI.

 

On some Cases we don't use the standard Contact Lookup, but a Custom Contact Lookup. We've created a Custom Email action ( hence the label on the action ) which uses that custom Lookup and the JunctionIds functionality to populate the Contact within the To: section on the email action.

 

However, this still causes the email (based on a Lightning Email template) to fail:

 

Recipient Merge field when sending Emails through UI from Case

 

Screenshot 2021-09-09 at 11.41.49.png

 

Based on my understanding of the functionality, this should work. However, it seems that it doesn't?

 

A colleague mentioned that populating the standard Contact lookup field allows this to work, which seems to imply that the ContactId field on the Case is more important than the actual Contact referenced in the Email action. We cannot use the standard Contact lookup field here, as there are sharing sets and settings in place which we have to keep in place, but cannot be invoked for this subset of Cases.

 

Can anybody shed any light on this? Is this one of those weird "Standard Objects And Their Specific Behaviours" type issues?

 

#Lightning Email Template #Recipient Type Field #Case #Custom Lookup Field

3 risposte
  1. 20 set 2021, 21:12

    We have since found that this is a limitation within Salesforce. Albeit one that isn't referenced in the documentation.

     

    The recipient merge fields on Lightning Email Templates related to Cases only works with the standard Contact Lookup. This has been confirmed by Salesforce support and there is an existing Idea on the Idea exchange for it:

     

    Lightning Email Templates - Recipient Merge fields to relate to the recipient

     

    Another one of those strange undocumented Salesforce limitations.

0/9000

Hello! We've created a custom lookup field on the Activity object to associate it with a custom object instead of using the WhatId. When we look at the activities-related list on the record page, tasks show up but there are no actions available as shown in the screenshot. Is this a known issue? 

0/9000

Help!  We have a custom lookup field on the opportunity to hold the contact.  I want to prepopulate this field with the contact that the opportunity is created from, when a user creates a new opportunity off of the contact page.  I know I'll need to create a new button, telling salesforce to prepopulate this custom field but can't figure out how to write that URL hack.  Any help would be greatly appreciated!

6 commenti
  1. 13 nov 2018, 19:44

    Thanks Steve and Dale.

    Dale - the contact is already being added to the contact role on the opportunity, so we're good there. I thought we could restrict it so that the opportunity is only created from the contact, but the business also wants the users to be able to create an opportunity from the account page or straight from the opportunity tab. This wouldn't require a contact to be on the opportunity, which is why we have the contact lookup field. BUT, they also want the contact to be required when creating an opportunity!

    Steve - let me give the quick actions a try. Thanks!

0/9000

Workflow Rule using a custom lookup field

I'm trying to write a workflow rule that updates a picklist field to a certain value when an lookup item is selected.

 

Action - When lookup account name = ABC, then update picklist field name to ABC

 

Here is what I started with, but way off I'm sure. Any help or insight would be appreciated.

 

Lookup field: Primary_Competitor__r.Name

Picklist field: Competitor__c

=============================

IF(

 Primary_Competitor__r.Name = "ABC)"

)

ISPICKVAL( Competitor__c, "ABC")

 

)

 

Syntax error :)

3 commenti
0/9000
Hello, Can a custom lookup field be auto populated based on a value in another field using the Process Builder?
4 commenti
0/9000