Page 1 of 1

Using Search query through Notion

Posted: Tue Aug 20, 2024 8:17 pm
by ri.amaral
Hi all,

I am trying to create a URL link directly from Notion to a search query on Bookends. Not a biggie, I thought.
After trying to find out in the manual (not successfully), I was suggested by Chat GPT to use the following query to search for a Citekey on Bookends:

Code: Select all

bookends://search/User1=[Citekey]
[Citekey] is a reference field on a Notion database whose content has to be identical to a Bookends citekey (User1).
I used the formula and manually copied the result to a URL field.

Notion would not recognise the link. Pasting it on a browser does call Bookends, but nothing happens.

Could you please provide the correct syntax for this case? And what "code language" it follows?

Thanks!

Re: Using Search query through Notion

Posted: Wed Aug 21, 2024 3:01 pm
by Jon
Bookends doesn't have a mechanism to respond to a search request using a URI. There are two ways to do what you want, though.

1. Copy the link to the reference in Bookends and paste it into Notion (don't have that app, so I don't know if that''s possible or if it will recognize it as a link). There are several kinds of links you can create in Bookends, including deep links to PDFs locations. But if you just want the reference to appear, use Edit -> Copy Link.

2. Create an AppleScript. You can search the database, get metadata, upload metadata, and much more. If Notion is scriptable, too, you might be able to create a script that would extract the citekey from Notion and search Bookends for it.

Jon
Sonny Software

Re: Using Search query through Notion

Posted: Wed Aug 21, 2024 6:44 pm
by ri.amaral
Yeah, these were the other options I was informed about through ChatGPT.
Notion recognises links, but maybe AppleScript may help me more with the usage I seek.

Cheers!