Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/24f15dbe7f7baa65d37ffef8cf342b37 to your computer and use it in GitHub Desktop.
Save iaindooley/24f15dbe7f7baa65d37ffef8cf342b37 to your computer and use it in GitHub Desktop.
Link new form to created card
function linkFormToCreatedCard(notification)
{
var template = "12tNBcDar6gnoQH94ajxFOebvHnjR8qyOX8a8YGt3cTM";
var card = new Notification(notification).createdCard();
card.attachLink(FormApp.openById(DriveApp.getFileById(template).makeCopy(card.name()).getId()).getPublishedUrl());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment