Skip to content
Discussion options

You must be logged in to vote

Solved this myself. Apparently runOnChildNoteCreation and runOnNoteCreation do not execute from a template (and api.showMessage is not an actual method; but api.log is which worked).

I solved this by setting the ~runOnNoteCreation relationship on the parent note and not the template.
I also found that api.originEntity.getNote() (as referred to in other examples on these discussions) is no good. originEntity is itself a note and .getNote() is not a real method.

I now have my backend script up and running and working perfectly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Geekswordsman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant