How to Convert a Lead in Salesforce Flow (EASY)

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 10

  • @aretap1
    @aretap1 2 месяца назад +1

    Great Video! I can't seem to get the testConvertLead to success. It gives me the following error: System.AssertException: Assertion Failed: Same value: null and a Stack Trace of: Class.ConvertLeadApexTest.testConvertLead: line 41, column 1... Any idea on what is causing this? Only my apex test is not wroking. It works perfects in the sandbox! Thanks again!!

  • @shonuff8848
    @shonuff8848 Месяц назад

    My Test Class is failing. Line 41, column 1 on the testConvertLead and Line 93, column 1 on the testConvertLeadWithoutOpportunity. However, when I ran the normal Apex Class in my Sandbox, it converted the Lead without any issue. Any ideas how to resolve this? I only have 72%

  • @rashmedo
    @rashmedo 3 месяца назад

    Hi could you show how you created the lookup component

  • @edquitos
    @edquitos 2 месяца назад

    Hello, first of all thank you for this. This is a really great help especially for an admin like me with no coding experience. I am trying it now but during the testing of the Apex test class I am getting an error saying assertion failed same value: null on line 103 and 47. Can you help? Ot would be greatly appreciated.

  • @logan4293
    @logan4293 Месяц назад +1

    Does running this action also take into account of the Lead field mapping and sync the fields accordingly? Or do I have to do that separately in my flow?

    • @shonuff8848
      @shonuff8848 Месяц назад +1

      I just tested in my Sandbox environment, and the lead field mapping is considered.

    • @logan4293
      @logan4293 Месяц назад

      @shonuff8848 good to know, thanks!

  • @shonuff8848
    @shonuff8848 Месяц назад

    With regards to the test class and replacing the converted status. I think the same needs to be done on 2 different places for the "Status" when the Test Lead gets created, right? Here you have "Open - Not Contacted". If we do not have this status as a Lead Status in our ORG, this will also need to be replaced, correct? Lines 9 & 70 in the Test Class code.

    • @nickfrates
      @nickfrates  Месяц назад

      Yeah that’s right. You’ll also need to make sure the test class populates any fields required by validation rules in order to pass.

    • @shonuff8848
      @shonuff8848 Месяц назад

      @@nickfrates maybe this is why my test class keeps failing?