cancel
Showing results for 
Search instead for 
Did you mean: 

Set a Note Title using unity API

Smitha_Challa
Star Contributor
Star Contributor

This is the code I am using to add a note. What if I wanted the note Title to be in a different format or have a custom notetitle? There does not seem to a setter for the NoteTitle. How do I set the note title using the API? I can set a text but not Note title. 

e26e75254ff244dab35cb6630062ec6b

d2a6af5264a94d57a75a42b9e4948a55

6 REPLIES 6

Unfortunately for a newly created note, the ID is not immediately returned since it is applied through the NoteModifier (and the NoteModifier could perform multiple actions). You can retrieve the notes on the document after applying the modifier to get the new note object, including it's ID. In regards to updating a note, if it is an existing note, than the ID will stay the same, it shouldn't change when updating the note.

In general, if you need to perform additional actions with the notes after applying changes via the NoteModifier, the best action is to retrieve the Notes again by calling Notes.Document to make sure the objects you are using reflect the current state of the system.

Smitha_Challa
Star Contributor
Star Contributor

Thank you Justin