Is there a chance to use OR in formula TEXT ? I need to get the value if account record type is ABC then display field from Account.Abc__r.Name or if Account Record type is equal XYZ then dispaly Account.XYZ__r.Name

Could someone help me ?

IF( Account.RecordType.Name = "ABC",  Account.ABC__r.Name, null, 
IF( Account.RecordType.Name = "XYZ",   Account.XYZ__r.Name , null))

The OR function does not help you at all here. Nesting If functions is one valid way to execute this logic, though the CASE function uses fewer formula characters:

    "ABC", Account.ABC__r.Name,
    "XYZ", Account.XYZ__r.Name,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.