function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AtroxyAtroxy 

IF/Case RecordType Naming

Heya,

 

I'm trying to fill fields according to their record type. Since I only have once record type for now, I thought I would do it like this:

 

IF (Opportunity__r.RecordTypeId= "012D0000000X8PvIAZ", "13R", "0") + Number__c 

 That didn't really work out. Since I will have several RecordType Ids, could somebody point me the way, how I can write the formula to add a prefix depending on the RecordType Id?

Jeff MayJeff May

I think you already found your answer:  use CASE()