0 pts.
 Lotus Script Agent to prepend shortname field?
I find myself in an aquisition situation where I have to (overnight) update the shortname field in the NAB with the existing shortname @ aquiring company's domain name. I'd like to script this because I have over 1,000 users and would prefer not to manually edit every person document. I understand that in order for the outgoing mail to come from @acquiringcompany.com, that has to be first in the shortname field. There is a requirement to keep the @currentcompany.com alias as well. While I've written append scripts before, I haven't written or found a prepend script/agent that seems to work effectively. Any ideas? Thanks in advance, Michelle R. Maertz

Software/Hardware used:
ASKED: February 13, 2005  5:42 PM
UPDATED: February 14, 2005  7:57 AM

Answer Wiki:
Michelle, To prepend a field you can take your append script and reverse the order of the elements. Arrays can be prepended or appended with other arrays; thus, tmparray = valuetoprepend (must be array value) orgarray = currentfieldvalue newarray = arrayappend(tmparray,newarray) fieldvalue = newarray Make sense?
Last Wiki Answer Submitted:  February 13, 2005  6:29 pm  by  studward   0 pts.
All Answer Wiki Contributors:  studward   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

If the users shortname is the only entry in the shortname field write:

_newentry := ShortName + “@abc.test”;
FIELD ShortName := Shortname : _newentry;

 0 pts.