Lotus Script Agent to prepend shortname field?

0 pts.
Tags:
Address book
Agents
Lotus Domino
Microsoft Exchange
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
ASKED: February 13, 2005  5:42 PM
UPDATED: February 14, 2005  7:57 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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?

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Hrothenb
    If the users shortname is the only entry in the shortname field write: ... _newentry := ShortName + "@abc.test"; FIELD ShortName := Shortname : _newentry; ...
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following