My first attempt in LotusScript-- I have a locally developed Helpdesk App I would like to add a new action to. This action would allow users to create a new task populated with information from the HelpDesk ticket. I would also like a link back to the orginal Helpdesk ticket.
The form name is “Create Request|CR”
The I would like the following fields from the ticket to copy to the new task:
CR_subject > Subject
CR_date > StartDate
CR_description > Body
This is what I have so far- I’m popping the task form, but no information is inherited.
Thanks
Sub Click(Source As Button)
Dim session As New NotesSession
Dim ws As New NotesUIWorkspace
Dim maildb As Notesdatabase
Dim taskuidoc As NotesUIDocument
Dim CRuidoc As NotesUIDocument
Dim taskdoc As NotesDocument
Dim CRdoc As NotesDocument
Dim taskbody As Variant
Dim subject As Variant
Set CRuidoc = ws.CurrentDocument
Set maildb = New NotesDatabase("","")
maildb.OpenMail
Set taskuidoc = ws.ComposeDocument(maildb.Server, maildb.FilePath, "Task")
Set CRdoc = CRuidoc.Document
subject = "Subject"
taskuidoc.fieldappendtext "Body",subject
End Sub