I Have two custom objects(obj1 and obj2) and two fields(Obj1field and Obj2field) in these custom objects.Now I would like to write a validation rule in obj1, which compares the two fields.I tried the below one, but there is an error.
Enter_Required_Quanity__c >= $ObjectType.StorageObject__c.Fields.Quantity_Left__c
When I tried this the following error occurred.
Error: Incorrect parameter type for operator '>='. Expected Number, received Object