How to edit Session Token's file name?

I’ve posted about this before in detail, but essentially you need a token for the folder you want to save to.
In that post I’m giving the example of getting a folder entry/token via getFolder() and then using getEntries() to get an array of the folder contents - your use case is different in that your starting point is a file and you want the parent folder.
You’ve got two choices:

  1. prompt the user for a save destination with getFolder()
  2. use getEntryWithUrl() using the path of the active document to get an entry and bypass any user input

I’d say that 2 is what you want from a UX perspective, but as you can see I’m perhaps not the best person to comment on that :sob:

1 Like