Create a note as renderNote or change to it after creation (scripting) #2897
Answered
by
zadam
nicollasricas
asked this question in
Q&A
-
Create a note as renderNote or change it after creation Is there a way to create a note as renderNote? or change it to after creation? Creating a new note with the type render or renderNote doesn't work! const response = await api.createNewNote({
parentNoteId: parentId,
title: title,
content: "",
type: collectionViewsScript ? "render" : "book",
isProtected: true,
}); |
Beta Was this translation helpful? Give feedback.
Answered by
zadam
Jun 5, 2022
Replies: 1 comment
-
Hi, just tried this script and it works as intended - note is created of type render: const response = api.createNewNote({
parentNoteId: 'root',
title: "zzz",
content: "",
type: "render",
isProtected: false
}); After creation you can also change the note type like this: note.type = 'render';
note.mime = '';
note.save(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nicollasricas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, just tried this script and it works as intended - note is created of type render:
After creation you can also change the note type like this: