• Rune_Waage
  • NEWBIE
  • 60 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hi

I am looking for a way to customaize the Display Name for the Customer Service agent in a LiveAgent chat.

By default it seems to be "FirstName followed by first letter in the  LastName.

 

Se exsample here (You will see "Emily W" at the bottom of the page "Customizing chat windows"):

http://www.salesforce.com/us/developer/docs/live_agent_dev/index.htm

 

Is it possible to change this to only show the first name?

 

Thanks for your help.

 

 

Br,

Rune Waage

Hai,

 

How to remove space from a string?

 

Shine

I wrote the following

 

 

Public Static String getEmailFromSubjecct(String Subject){ // First, instantiate a new Pattern object "MyPattern" String emailRegex = '(\\w+)@(\\w+\\.)(\\w+)(\\.\\w+)*'; Pattern MyPattern = Pattern.compile(emailRegex); // Then instantiate a new Matcher object "MyMatcher" Matcher MyMatcher = MyPattern.matcher(Subject); boolean hasMatch = MyMatcher.matches(); String match = MyMatcher.group(0); return match;

}

 the variable "hasMatches" returns "true" when I call this with

 

EmailTools.getEmailFromSubject('test@test.com is an email address');

 

but  the string "match" fails with "System.StringException: No match found"

 

I am lost here.  Why would the .matches() method return true if there are no matches?