I am working with the HCL Notes C API and need to write (save) an email directly into a specific folder inside an NSF database.
Currently, when I create a new email using NSFNoteCreate, set the necessary items (From, Subject, Body, etc.), and save it using NSFNoteUpdate, it goes into the **default View ** like sent , inbox,By Sender but i want this email should be write into the specific folder.
What is the correct method in the HCL C API to write a new email directly into a specific folder inside the NSF database?
Please provide detailed guidance or a step-by-step explanation of how to write emails into a specific folder using the HCL C API, including:
Which APIs to call
In what sequence
Any flags or note class configurations needed
Any caveats regarding the default All Documents view.
Thank you @Jho Ann Leanne Labayani for the detailed step-by-step guidance.
However, I am using the HCL C API Toolkit 12.0.2, and in this toolkit:
NSFNoteGetNoteID
NSFDbPutNoteInFolder
are not available. I have also checked the official HCL C API documentation, and I could not find these functions listed.
Because of this, I am unable to follow the suggested approach directly.
Could you please clarify:
Are these functions part of a different SDK or an internal API?
Is there an alternative approach using only the functions available in the C API Toolkit 12.0.2** to add a newly created note into a specific folder inside the NSF database?