Sets the value of a field in a profile document or creates a profile document.
@SetProfileField( profilename ; fieldname ; value ; uniqueKey )
profilename
Text. The name of the profile document that contains the field you want to access. If no profile document exists by this name, Lotus Notes/Domino creates one.
fieldname
Text. The name of the field you want to access.
value
Text, number, time-date, time-date range, or list thereof. The value to which you want to set the field.
uniqueKey
Text. Optional. A unique key that identifies the profile document.
value
The value to which you set the field.
Use this function to create a profile document in a Web application. The EditProfile @command does not work on the Web. If no document exists with the name specified as the first parameter of this function, Lotus Notes/Domino creates a profile document with that name. Use @GetProfileField to access data from the profile document.
The value can be anything and does not have to match the type of the field as defined on a form. This function does not reset flags on an existing field and does not set flags for a newly stored field. For example, a Readers field does not become plain text by assigning a text value; and a newly stored field cannot be made a Readers field. The LotusScript and Java classes allow this manipulation through NotesItem and Item.
EditProfile method of LotusScript NotesUIWorkspace class
See examples