Quantcast
Viewing all articles
Browse latest Browse all 8695

FMS contact person firstname and lastname

Hi,

 

When we enter an contact person we start by entering the contactID (OCPR,NAME) field

 

Now we want auto populate the first name and last name field by this contactID field.

 

The format we enter the contactID field is:

 

firstname lastname

 

I have created 2 FMS ; the firstname is working but I cannot get the lastname working.

 

Firstname FMS:

SELECT LEFT($[$107.1.1],CHARINDEX(' '   ,$[$107.1.1],2))

 

Lastname FMS:

SELECT RIGHT($[$107.1.1],CHARINDEX( ' ' ,REVERSE($[$107.1.1]))-1)

 

What is wrong?

 

And when we have a contactID with a format like below, how can we handle this??

 

firstname middlename lastname

 

The problem is the middlename

 

Thanks

 

 

Mark


Viewing all articles
Browse latest Browse all 8695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>