Get user profile document with LN script

Hello,

Could somebody help me?

I’d like access my user profile document but I can’t. Why?

Here is the code:

Dim session as New Notessession

Dim db as Notesdatabase

Dim uname As New NotesName(session.UserName)

Dim aname As String

Dim pdoc as Notesdocument

Set db = session.Currentdatabase

aname = uname.Abbreviated

Set pdoc = db.GetProfileDocument(“SettingsUserProfile”, aname)

If it is wrong how can I access the user profile document by sript?

Thanks in advance

Best regards

Tibor

Subject: Don’t abbreviate. Who told you should do that?

Subject: RE: Don’t abbreviate. Who told you should do that?

Hello,

You are right. It seems I was too tired :-(. It works without abbreviate.

Thanks a lot.

Regards

Tibor