Skip to main content
Mike Stevens ha fatto una domanda in #Trailhead
Any and all help appreciated!

I have put together the formulas for the Using Text Formulas trailhead and I am getting this error:

Challenge Not yet complete... here's what's wrong: 

The Lead object does not contain the correct formula fields per the requirements. Tip: check for typos in the field names.

I have read my code pretty closely and I can't see that anything is missing:

Lead Quality

IMAGE(

    CASE(Lead_Quality_Helper__c,

        5, "/img/samples/stars_500.gif",

        4, "/img/samples/stars_400.gif",

        3, "/img/samples/stars_300.gif",

        2, "/img/samples/stars_200.gif",

        1, "/img/samples/stars_100.gif",

                "/img/samples/stars_000.gif"), 

        CASE(Lead_Quality_Helper__c,

        5, "5 stars",

        4, "4 stars",

        3, "3 stars",

        2, "2 stars",

        1, "1 star"

                ,"0 stars")

)

Lead Quality Helper

IF(ISBLANK(Email), 0, 1) +

IF(ISBLANK(Phone), 0, 1) +

IF(ISBLANK(Company), 0, 1) +

IF(ISBLANK(Title), 0, 1) +

IF(ISPICKVAL(Industry, ""), 0, 1)
2 risposte
  1. 26 mag 2016, 03:55
    Please check below post for solution

    1) https://developer.salesforce.com/forums/?id=906F0000000MIzjIAG

    2) https://developer.salesforce.com/forums/?id=906F0000000MJ5SIAW

    Lead Quality Helper (Lead_Quality_Helper__c) :-

    IF( ISBLANK( Email ) , 0, 1) +

    IF( ISBLANK( Phone ) , 0, 1) +

    IF( ISBLANK( Company ) , 0, 1) +

    IF( ISBLANK( Title ) , 0, 1) +

    IF( ISpickval(Industry , ""), 0,1)

    Lead Quality (Lead_Quality__c) :-

    IMAGE(

    CASE( Lead_Quality_Helper__c ,

    1, "/img/samples/stars_100.gif ",

    2, "/img/samples/stars_200.gif",

    3, "/img/samples/stars_300.gif",

    4, "/img/samples/stars_400.gif",

    5, "/img/samples/stars_500.gif",

    "/img/samples/stars_000.gif"),

    "0 stars")

    .....................

    or  (I used below one)

    CASE(Lead_Quality_Helper__c, 

    1, IMAGE("/img/samples/stars_100.gif", "1 star"), 

    2, IMAGE("/img/samples/stars_200.gif", "2 stars"), 

    3, IMAGE("/img/samples/stars_300.gif", "3 stars"), 

    4, IMAGE("/img/samples/stars_400.gif", "4 stars"), 

    5, IMAGE("/img/samples/stars_500.gif", "5 stars"), 

    IMAGE("/img/samples/stars_000.gif", "0 stars"))

    Please let us know if this will help you

    Thanks

    Amit Chaudhary