This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Feb 16, 2016, 2:03 PM
3 Posts

How to categorize a contact with lotusscript?

  • Category: Contacts
  • Platform: Windows
  • Release: 9.0.1
  • Role: Administrator,Developer
  • Tags: Lotusscript Names.nsf
  • Replies: 2

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

 

Feb 16, 2016, 4:43 PM
202 Posts
Category won't work as the field is "Categories"
so doc.Categories = "XXX"

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal