Appending Draft Contents to Existing Dropbox File

Hi,
Wondering if someone can help me out? Many thanks in advance for your assistance!

I want to append a drafts note to a markdown file in dropbox, similar to Append to Dropbox Journal but with the following criteria:

  • Firstline of the Draft will be h2 ## in the appended text file
  • Draft being appended is added to the top of the dropbox md file
  • I can create the note in dropbox so it is sure to be there for the file path

For example:

Test Note1

Some Content
Followed by more content

Some Content
Followed by more content

Some Content
Followed by more content


Test Note2

Some Content
Followed by more content

Some Content
Followed by more content

Some Content
Followed by more content

This can be done with a single Dropbox action step. I suggest you start with the “Append to Dropbox Journal” action you mention and duplicate it (tap and hold on action in list of options).

Edit the new action, drill down to the Dropbox step, and make changes to the field values to match what you describe above:

  • Change file name and path to target the file you want to use. You do not need to create the file, Drafts will if it doesn’t already exist when you run the action.
  • Change the “Write Type” to “Prepend” (beginning of file) instead of “Append”.
  • Edit the template to include your title and body, something like:
## [[title]]

[[body]]

You can learn more about using templates in this article.

Hope this helps!

This is really helpful - thank you for the direction.