Need Script Helping pulling last value from Authors ($UpdatedBy)

I need a script (using Lotus Script) that will pull the last value from the $UpdatedBy field. I understand that in Script it is in the doc.Authors Property.

That Property is an Array, and I’m not sure how to get the array, and then get the last entity.

Is it easier than I think it is ?

David R Noble

Subject: Need Script Helping pulling last value from Authors ($UpdatedBy)

To get an array (field value, etc.), assign it to a Variant. To get the last member, use the Ubound statement:

Dim docAuthors As Variant

Dim lastAuthor as String

docAuthors = doc.Authors

lastAuthor = docAuthors(Ubound(docAuthors))

lastAuthor will contain a canonical name (“CN=John Smith/OU=Sales/O=Acme”), so you may have to create a NotesName using the string and get the Abbreviated or Common property for use elsewhere in the code.

Subject: RE: Need Script Helping pulling last value from Authors ($UpdatedBy)

You just saved me so much time. Thank you, thank you !!