Create a Custom Metadata Type for VAT
Acme sells products all over the world. Some countries charge a value-added tax (VAT) on top of the retail price for particular goods. Create a custom metadata type that stores the VAT rate for Japan and Germany.
Create a validation rule that references a custom metadata type record
Acme Services evaluated their customer and sales data. Management concluded that accounts with revenues of less than a specified amount rarely need high end support services and aren’t willing to pay for them.
Prework:
If you haven’t already done so, complete the steps in this unit before attempting this challenge. Otherwise, the challenge won’t pass.
- Create a validation rule on the Annual Revenue field of the Account object.
- Verify that the annual revenue is at least 20 times the minimum spending amount of the Gold Support Tier.
- Name the validation rule Revenue_Validation.
I did the same process but at the end it keeps saying :
In the validation rule named ‘Revenue_Validation’, we can’t find a reference to ‘$CustomMetadata.Support_Tier__mdt.Gold.Minimum_Spending__c’.
I need support immediately
Still now having the same issue. Any body have any idea or suggestion:
In the validation rule named ‘Revenue_Validation’, we can’t find a reference to ‘$CustomMetadata.Support_Tier__mdt.Gold.Minimum_Spending__c’.
IF(ISPICKVAL( Support_Tier__c , “Gold”) && AnnualRevenue < (20*$CustomMetadata.Support_Tier__mdt.Gold.Minimum_Spending__c) ,TRUE,FALSE )
This is resolve the issue
Thanks for sharing the solution!!!