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
indoberto lerma 10indoberto lerma 10 

multi select picklist equals to recordtype name

HI, 

i have a field Multi select picklist named Alliance type that  contais

Private Equity
Software Partner
Advisory Partner

also on the record type name i have the sale values

Private Equity
Software Partner
Advisory Partner

i need to create a validation, that if a user is creating a record with one of the 3 record type names, it matches with the one of the values on the Alliance type. for example, if there are 2 values on the field (Private Equity and software Partner) but the record type is Advisory partner then an error must show unless the Advisory Partner is also selected on the field

How can i create this validation?
Rohit B ☁Rohit B ☁
Hi Indoberto,
Try this :-
AND(
  RecordType.DeveloperName = "Advisory Partner",
  INCLUDES(Alliance_Type__c, RecordType.DeveloperName) 
)

Hope it works for you.. :)
indoberto lerma 10indoberto lerma 10
HI Rohiy

i beleive this only covers one scenario, i put an example but really i need that no matter wich record type user is workong on, compare to the elements on the multi pick list and see if the element is there or not and i not thats when the error should show
 
Rohit B ☁Rohit B ☁
Oh sorry I misread it..

Try this 

AND(
  INCLUDES(Alliance_Type__c, RecordType.DeveloperName) 
)

This will work in ur scenario..