Dataview query: Random note with type=person

Things I have tried

What I’m trying to do

In my vault, I have a folder People/ with a note per Person.
I use this for meetings, follow-ups, and networking.

I’d like to have my daily note template show me a list of say 3 randomly-selected People, so I am reminded to touch base with them.

Any ideas how I might do this?


Something like this maybe?

let random = dv.pages('"People"')
let randomPerson1 = random[Math.floor(Math.random() * random.length)]
let randomPerson2 = random[Math.floor(Math.random() * random.length)]
let randomPerson3 = random[Math.floor(Math.random() * random.length)]

dv.paragraph("Touch base with " +
dv.paragraph("Touch base with " +
dv.paragraph("Touch base with " +

If done from a Templater template, and you don’t want this to be randomised every time you reload that daily note, you should use a template execution block, and add the result of those queries into the tR variable.

For a similar request see the following:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.