@dblackwe
...the function takes a customer name, converts it to a two letter code
-------------
The WFA MVEL fuctions can't be called inside a mysql query. I suggest you use MYSQL fucntions to get this done instead of WFA fucntions.
Whatever logic you are using to convert the provided customer name into 2 letter code, it must be possible using Mysql fuctions.
See here.
If you can't figure it out, provide your Query and the MVEL fuction and I can give it a try.
sinhaa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.