I have a folder for contacts (“050 People”). Every contact has inline metadata with their company/entity that appears as:
I’m trying to filter for those contacts that work at Company X, knowing that I’ll likely have to convert the link to a string.
After searching through the Forum for the past 2 days, the best I’ve come up with is:
--- <%* const dv = this.app.plugins.plugins["dataview"].api; let allProjects = dv.pages('"050 People"'); let chosenProjects = allProjects .where(p => p.Entity.toString().includes("CompanyX")) .file.sort(n => n.name); let suggestions = chosenProjects.name; let Entity1 = await tp.system.suggester(suggestions,suggestions) _%> ---
Any ideas are most welcome !!! Thanks