In this reply I’m answering on how to include stuff to be permanently saved into the new note, instead of being a dynamic query.
So the gist of how to do this is:
- Use a Javascript execution command block, starting with
<%* - Do your query and store the result, using something like either
dv.query()ordv.tryQuery(), see Codeblock Reference - Dataview - And present the results back into the note by assigning the values into the
tRvariable, using something likedv.markdownList()to format the response. - Alternatively, especially if you don’t want/need to handle the storage/evaluation of the query result (which I most often want to tinker a little bit with), you can also do something like
tR += await tryQueryMarkdown( ... )(I’ve not used this one, yet, so not entirely sure of the syntax, but try it out) (This step would replace the two preceding bullet points