Start a new topic

Variables in template filename doesn’t work after Shortcuts callback

I have template with dynamically filename via variables, when i use it in beorg app it works, but not when i send x-callback from ios shortcuts app. Looks like variables escaping, see screenshot.

1 person has this problem

Thanks for reporting this. I've made a note to look into what is happening here.


1 person likes this
This still appears to be an issue with url callback. The variables in filenames work just fine internally when using a template. For instance it will add a task to the file with this name: “Daily 2023-10-07” When using a callback link the task is imported to a file with this name (using the same template): “Daily %year%-%month%-%day%”

If you can show a screenshot with the callback URL you've configured your shortcut with I'll take a look at this.

Any update on this issue? Thanks!

If I can see a screenshot (or the text) of a callback URL where this isn't working I'll take a look at this issue. It is probably a quoting issue - i.e. the URL will possibly need some quoting in the query parameters.

I am not sure exactly what you need, but do these help?
IMG0152.png
(1.4 MB)
IMG0153.png
(153 KB)

Thank you for sending the screenshots. I've been able to replicate this and hopefully have a fix. I to have an update to beorg out in the next week with this in.

That’s awesome. In the meantime, I think I found another possible solution (which seems to work so far). Instead of approaching the problem by trying to get template variables to expand, I went back to the shortcut to see if I could get it to do what I wanted, which is basically neatly capture text from safari into an org-roam journal file. See attached. If you were able to fix the template problem, then I guess I am on the fence as to which is the better approach. Thoughts?
IMG0162.png
(1.46 MB)
IMG0161.png
(1.3 MB)
IMG0160.png
(1.43 MB)
IMG0159.png
(1.02 MB)
I should mention also that the first time, I formatted the date for the TITLE variable as yyyy-MM-dd, and the second time I formatted the date for the FILENAME as yyyy_MM_dd, which seems to conform to the formats used in org-roam and Logseq (which is a nice complement to Beorg on the iPhone because it is a pretty good org-roam analog). Both work for me for different tasks. However, capturing through Beorg results in cleaner entries.
Login or Signup to post a comment