Skip to main content

I'm in EDA and using a filter on the CON_Preferred_TDTM trigger to filter out an email we don't want to be included in the preferred list. I'm noticing this is causing issues when I try to convert a lead:

There was an error converting the lead. Please resolve the following error and try again: hed.TDTM_Contact: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object Class.hed.CON_Email.CON_EmailFieldList.: line 216, column 1 Class.hed.CON_Email.processPreferredEmail: line 131, column 1 Class.hed.CON_Preferred_TDTM.run: line 59, column 1 Class.hed.TDTM_TriggerHandler.runClass: line 143, column 1 Class.hed.TDTM_TriggerHandler.run: line 75, column 1 Class.hed.TDTM_Global_API.run: line 61, column 1 Trigger.hed.TDTM_Contact: line 33, column 1

I know lead conversion isn't fully supported within EDA yet. Wondering if there is something I can change within the EDA Settings or Triggler Handlers to allow leads to convert with this filter enabled?

9 respuestas
  1. 16 dic 2019, 11:03 p.m.

    If I am following along correctly, I think if you were to specify the preferred email value (and ensure the related field has data) upon lead conversion that should fix the issue. I'm a little confused though, but if you have a value in VIP email, but no other email field, and you have the Preferred Email functionality turned on (you have to actively Disable it in Settings), then our code will try to find a Preferred Email value of VIP Email in the picklist. So you could potentially add VIP Email to the Preferred Email picklist as well.

     

    Let me know if we need to chat about it deeper in case I am misunderstanding something.