Dataview inline query for metadata of a non-note file in vault?

What I’m trying to do

I am writing a long Word doc, which is in my Obsidian vault as an attachment in .docx form. Let’s call it “Report.docx”. I am in a Note, trying to manually create a table (as in, this table is not dataview, but a adding cells manually type of markdown table) in which I link to the .docx attachment in the first cell, then I have a few more cells of data I type in, then I want the final cell to include “Last edited on” and it checks the most recent modified date of Report.docx and prints it there.

Things I have tried

=[[Report.docx]].file.mtime
=[[Report.docx]].file.mday
=date(find("Vault\Subfolder\Subfolder\Report.docx").modified,"MM-dd")

Is it the case that I can’t query metadata from non-.md files with dataview? Or is there something else I’m missing?

In general a pure Dataview query (aka a DQL query) don’t know of any non-md files. This also applies to inline DQL queries.

However you should be able to use an inline dataviewjs query and do a stat on that file. If this is not enough information for you (or someone else) to build the query, I can type it out tomorrow…

I’m not very familiar with javascript and queries; with your post to guide me I did re-read the Inline Dataview JS section of the DQL, JS, and Inlines page and tried to get things working with that guidance, but I wasn’t able to figure it out. If you happen to have the time and inclination, I would love some guidance on this, but don’t trouble yourself on my account! Thanks for giving your insight regardless! :slight_smile:

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