Need Help Troubleshooting a Meta-Bind-Button

What I’m trying to do

I am trying to use a meta-bind-button to create a new file based on a template file.
The meta-bind-button requires a Template and Folder declaration to define each path.

Rather than hard-code the paths, I placed the paths to each in the current note’s YAML
“TMP_PATH” and “LOG_PATH”

I had this working like a champ, and then it quit working. I have been working on multiple notes throughout this process, I may have inadvertently broken something, but I am not seeing it.

Things I have tried

I have tried encasing the path entries in the frontmatter YAML in " " quotes as the paths do have spaces. But this has not corrected the situation. When I review the console the feedback is that the template file cannot be found. I have verified that the template file is there. And I have used standard templater functionality of assigning the template to a specific directory and create a new note with the assigned template. This process works with no issues.

Here is the code for the meta-bind-button:

label: "CREATE A NEW PROJECT LOG"
icon: ""
hidden: false
class: ""
tooltip: ""
id: ""
style: default
actions:
  - type: templaterCreateNote
    templateFile: !path(#TMP_PATH) # Correct way to reference TMP_PATH
    folderPath: !path(#LOG_PATH)  # Correct way to reference LOG_PATH
    openNote: true

I am hoping someone sees something I am not see to get me back on the right track. Thanks in Advance
-Tim C.

What is the point of trying to read paths from the frontmatter and what is the expected syntax from Meta Bind plugin? What is the ! doing there?
I don’t know. I am asking you. Did this really use to work?

Why not add template file and folder as they are expected and be done with it?

Or, alternatively…does a template populate the paths beforehand?
Then maybe explore ways to add the Meta Bind button through that earlier template, in which you can dynamically use variables such as <% `${variable}` %>.

I am not a Meta Bind expert. I don’t go to sleep and wake up with it.

From what I’ve encountered, there are two main use cases: create buttons on a dashboard or query page or dynamically through templates.

For example, in the SoRobby demo vault, the author uses Buttons plugin buttons in this template of his.
I converted the method to Meta Bind months ago, but didn’t even end up using the template based on the linked one.

So what I’m really asking…are you not overcomplicating something here and confusing us with it as well? It’s quite common on this forum, from what I’ve seen… :slight_smile:

That is why the exact workflow is needed in the posts, but of course, if the post is too long, potential helpers may not have the time to read through it…

Here is a working Solution

How to make a button to create a new note using meta-bind-js-view using YAML properties - Share & showcase - Obsidian Forum