Get and check filepath of all outlinks of a file and exclude those from query

What I’m trying to do

I’m trying to make a dataview table:
Column 1 = file names
Column 2 = every outlink within the file, which paths to a file in one specific folder

Things I have tried

The main issue I’ve been having surrounds

meta(file.outlinks).path

which doesn’t work since meta only functions on single items, not arrays.

I have tried FLATTEN to turn file.outlinks into a single link, then getting the meta().path of that, and that works just fine, but the issue is showing all of them at once (there is likely to be 2 or 3).

Any help would be appreciated!

Try something like map(file.outlinks, (ol) => meta(ol).path) Now you apply the meta function to each link. You could also use a similar construct with filter() to filter out only the interesting links.

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