Can I list a file's embeds/ attachments in a field using Metadata Menu?

I should have clarified - I’m not using Dataview inside the table or inside of specific properties. It’s there as a necessary add-on with DB Folder for Notion-like databases.

I tried these in a Metadata Menu formula field based on this thread

dv.pages().filter(p => p.file.outlinks.values.map(l => l.path).includes("Attachments"))
dv.pages().filter(p => p.current.file.outlinks.values.map(l => l.path).includes("Attachments"))

This works inside of the page:

```dataviewjs
let outlinks = dv.array(dv.current().file.path).flatMap(p => dv.page(p).file.outlinks);

let attachments = Array.from(outlinks.filter(pageLinks => pageLinks.path.includes("Attachments")));

dv.list(attachments);
```

But it does not embed the link inside of the listed items:
image

And the code does not work in the Metadata Menu formula field.