Note adeed via c api not updated in lotus notes contacts

HI,

I have written cmd line application, which add, edit, delete and display notes. When i add a note it is not getting updated in the Lotus notes contact list. But i able to see the added contact in my application.How do i fix this

Here is the way how i do

NSFNoteCreate(g_hdb, &hNote);

if(sRes != NSFItemAppend(hNote, ITEM_NAMES, “FirstName”, strlen(“FirstName”), TYPE_TEXT, cStr, strlen(cStr)))

return false;

// Add remaining fields

NSFNoteUpdate(hNote,UPDATE_FORCE))

return false if failed;

NSFNoteClose(hNote);