Hello, I am struggling to get a text formula field to display the corect information. I have the following formula: IF( AND(RecordType.Name = 'Asset', CONTAINS( ProductHierarchy__r.NRElement__r.Name, 'Water')),'Yes', 'No') This is valid syntax, but every record is returning 'No', when there should be 'Yes' also. I tried: IF(CONTAINS(ProductHierarchy__r.NRElement__r.Name, "Water"), "Yes", "No") as well, which was valid, but gave the same unexpected results
I should point out that the record type I am wanting to display a value against is one ('Site'), but the value/result is coming from 'Asset'. So, If Site record 'A' contains an Asset Record A, B & C which is water related, then Site record A will contain water. If Site 'A' doesn't contain any Asset records in it that are water related, then the result will be 'no'.
My thought was I could create a formula lookup on asset record type, and then create another formula to display on site that looked up the value on assets within, but frustratingly salesforce won't let you create formulas looking up other formulas