Inputs given to the LotusScript agent by agtgdmno
A subset of the following inputs are loaded into the agent database when agtgdmno
runs a LotusScript agent:
UserId
FullName
AccountId
ShortId
NewPassword
OldPassword
ModelId
GroupId
GroupName
CreationAttributes
UserAttributes
Depending on the operation, some or all of the inputs are loaded. You can use the following LotusScript segment in your agent script to extract these inputs.
REM First thing to do is find arguments for the operation Dim session As New NotesSession Dim agentDoc As NotesDocument REM Parameters Dim userId As String Dim accountId As String Dim shortId As String Dim newPassword As String Dim oldPassword As String Dim modelId As String Dim groupId As String Dim groupName As String Dim creationAttributes As Variant Dim userAttributes As Variant REM Get the parameters from the operation document Set agentDoc = session.DocumentContext userId = agentDoc.GetItemValue( "UserId" )(0) accountId = agentDoc.GetItemValue( "AccountId" )(0) shortId = agentDoc.GetItemValue( "ShortId" )(0) newPassword = agentDoc.GetItemValue( "NewPassword" )(0) oldPassword = agentDoc.GetItemValue( "OldPassword" )(0) modelId = agentDoc.GetItemValue( "ModelId" )(0) groupId = agentDoc.GetItemValue( "GroupId" )(0) groupName = agentDoc.GetItemValue( "GroupName" )(0) creationAttributes = agentDoc.GetItemValue( "CreationAttributes" ) userAttributes = agentDoc.GetItemValue( "UserAttributes" )
Note that both CreationAttributes and UserAttributes are stored as property lists. A property list has the following form:
(Attribute_Name_1 Attribute_Value_1 Attribute_Name_2 Attribute_Value_2 .... Attribute_Name_N Attribute_Value_N)