+ Start a Discussion
Ashok Kumar 454Ashok Kumar 454 

In the validation rule named 'Revenue_Validation', we can’t find a reference to '$CustomMetadata.Support_Tier__mdt.Gold.Minimum_Spending__c'.

I have been trying to complete this trail
Use Custom Metadata Types in Formulas, Default Values, and Validation (salesforce.com)
 but can't be able to solve it
My Validation rule is 
IF(( ISPICKVAL( Support_Tier__c , "Gold") && ( AnnualRevenue < $CustomMetadata.Support_Tier__mdt.Gold.Minimum_Spending__c * 20)), TRUE, FALSE)

but I'm Receiving a weird error called
"Challenge not yet complete in Creative Hawk Playground
In the validation rule named 'Revenue_Validation', we can’t find a reference to '$CustomMetadata.Support_Tier__mdt.Gold.Minimum_Spending__c'."

even though it was there in the Validation rule
PriyaPriya (Salesforce Developers) 
Hey Ashok,

I have seen that many users has faced the same issue. And they were able to solve by creating that module  again from the scracth. for e.g refer this :-

If it still not solved, Kindly reach out to 
Trailhead Help (https://trailhead.salesforce.com/en/help?support=home) they can provide the better assistance on this.

If you like the informaiton, kindky mark it as the best answer.

Thanks & Regards,
Priya Ranjan
Manohar shekhawat 4Manohar shekhawat 4
Following formula working for me:
IF( ISPICKVAL( Support_Tier__c , "Gold" ) && AnnualRevenue < 20*$CustomMetadata.Support_Tier__mdt.Gold.Minimum_Spending__c , true, false)
Manibalan SampathkumarManibalan Sampathkumar
Thanks @Manohar shekhawat 4, it works for me too!!