• Dinu
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I am getting below error after creating lighting app in vs code

User-added image
  • April 10, 2020
  • Like
  • 0
Hello All,

I am writting a validation rule on a field "Company" of user object. My criteria is if user's role is begins with "Cust" then "Company" name can not be "Test1" and "test2". Below code is not working.
 
NOT(AND(
	BEGINS($UserRole.Name, "Cust"),
	OR(UPPER(Company) = "Test1",
      UPPER(Company) = "test2")
	)
)

 
  • February 19, 2020
  • Like
  • 0
Hello All,

I am writting a validation rule on a field "Company" of user object. My criteria is if user's role is begins with "Cust" then "Company" name can not be "Test1" and "test2". Below code is not working.
 
NOT(AND(
	BEGINS($UserRole.Name, "Cust"),
	OR(UPPER(Company) = "Test1",
      UPPER(Company) = "test2")
	)
)

 
  • February 19, 2020
  • Like
  • 0