• sam ramy
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hello All, 

I'm trying to create a validation rule for the field Ethnicity (picklist) and Cultural Identify (Multi-select picklist). Every time Ethnicity equals "Hispanic or Latino", I want to required the field Cultural Identity. 
I was thinking in somehting like the following: 

AND
(ISPICKVAL(Ethnicity__c,"Hispanic or Latino")&& 
ISBLANK(TEXT(Identify_as__c))
)

Error: Field Cultural Identity is a multi-select picklist field. Multi-select picklist fields are only supported in certain functions.

Can someone help? 
Dear Folks,

Written a anonymous apex to update the user's profile name from Profile1 to Profile 2,i see anonymous apex ran successfully ,but i dont see the Profile.name got changed,any idea what is going wrong with below code
List<User> lstUsers = new List<User>();

for(User userToChangePermission : [SELECT ID,firstname,lastname,username,isActive,Profile.Name FROM User WHERE Profile.Name = 'Profile1' LIMIT 100 ])

{userToChangePermission.Profile.Name = 'Profile2';
lstUsers.Add(userToChangePermission);}

if(!lstUsers.isEmpty())
{
System.debug(lstUsers);
Update lstUsers;    
}

Your help is appreciated

Regards
Fiona