Contact creation in Notes using JAVA API

Hi,

I am looking for a JDK based API to create and delete a contact in Lotus Notes. Is there an API which I can use from Notes.jar or any other jar which is exposed?

Thanks.

There is no dedicated class to handle contacts in the address book.
But it is possible to create and delete contacts as a normal Notes document.

Example:

import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
Database db = session.getDatabase("", "names.nsf");
Document doc = db.createDocument();
doc.replaceItemValue("Form", "Person");
...

https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_NOTESDOCUMENT_CLASS_JAVA.html

Thanks