New Page from Button -- Generate Link

Hey Coda Community,

I would like to create a new page from a template using a button in a table. The new page will be named with a value from the current row. I would like this action to also create a link to the new page in a field in the same row.

Any guess how to accomplish the link part/is it possible in the current iteration of Coda?

1 Like

Hi @Chris_Herrmann,

I guess this is pretty similar to this requirement:

Unfortunately, there aren’t currently ways to get the generated URL of the new created page.

Ah, I would say it is similar indeed.

I’d take it there is no way to access the page structure formulaically then?

Formulaically no. Best you can do is either

  • Semi-automatically: manually insert a link to a page (using @) into a cell and formulaically extract a URL from that link:
    Extracting URL's from Hyperlinks - #4 by Paul_Danyliuk

  • Automatically but with a 3rd party tool: set up Integromat or Zapier to trigger on a webhook to get a list of pages via API and insert the link back into the table. In your DuplicatePage button you’ll have another action to OpenWindow() that webhook URL. You’ll still have to manually close that tab that opens. You also should probably have some delay, like 2-5 minutes, because there’s a delay between you copying the page and it actually being saved in the snapshot (I mean, if you query pages list through the API request right after duplicating the page, it may not see it yet for another few minutes)

Thank you, Paul!

I am sure I am not alone in thinking this capacity would open up a world of opportunities in Coda. I wonder if this is on the roadmap anywhere.

I might play around with the Integromat solution but, more likely, I’ll just find a modification to my plan that fits within the existing constraints of Coda (thankfully, the Coda developers have been incredibly diligent in listening to user feedback to root out limitations and address them – thanks, Coda!).