Closed RossMarks-Capgemini closed 1 month ago
nevermind, solved it.. probably not the right way but it's working:
console.log("New page created with ID:", createdNoteId);
api.runOnBackend((createdNoteId) => {
const note4 = api.getNote(createdNoteId);
note4.title = "noteID: "+createdNoteId;
note4.save();
}, [createdNoteId]);
I'm trying to change a notes title using the API.
Documentation is thin and confusing. So far I've managed:
This does change the note's title however it doesn't change on the sidebar and isn't permanent (If I browse away and come back the old title returns) is there some way to save it or make it permanent? I feel like I'm missing something obvious?!