Hello,
I am adding an agent to the names.nsf database, to download and create contacts from a card scanning app our employees are using. It’s working fine, I can create the contacts, but I want to throw them into a new category every time the run the agent so they can find the new contacts. Is there an easy way to categorize them in lotusscript?
I am creating the contact like this:
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim doc As NotesDocument
Set doc = db.CreateDocument
Doc.Form = “Contact”
Then I set field values with a doc.FIELDNAME = “XXXXX” and it works fine, but when I try a doc.Category = “XXX” It does not set a category. The category I am trying to set it to does not exist yet either.
Thanks in advance
Justin