• fvrfvsrtbb rt
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
trigger CheckPhoneFields on Contact (before update) {
  for (Contact contact: System.Trigger.new)
  {
      if (contact.Phone != null && contact.Phone.length() > 20)
        contact.Phone.addError('Too many digits ('+contact.Phone.length()+').  20 max.');
  }
}

This code works for inline editting, it does not save the changes and it displays the error.   Full page editing in the service cloud console does not display the error.

What is wrong here?

trigger CheckPhoneFields on Contact (before update) {
  for (Contact contact: System.Trigger.new)
  {
      if (contact.Phone != null && contact.Phone.length() > 20)
        contact.Phone.addError('Too many digits ('+contact.Phone.length()+').  20 max.');
  }
}

This code works for inline editting, it does not save the changes and it displays the error.   Full page editing in the service cloud console does not display the error.

What is wrong here?

This question comes up from time to time, so I thought I'd place it as a sticky here for future reference.

 

Seems like changing your email address should be easy, right? Well, it is, but you need to know just a couple things. That is, you use your Force.com or Salesforce account credentials to log in to the boards. The information coming from your account is the "master" information and the boards just stores it.

 

So to change your email address, log in to your salesforce org and change your email there, until your personal settings. Then, the next time you visit the boards be sure you're logged out, and then log back in. The email change will propagate and you should be good to go.

 

Hope that helps!

  • January 25, 2011
  • Like
  • 0