Created
April 5, 2019 02:07
-
-
Save iaindooley/24f15dbe7f7baa65d37ffef8cf342b37 to your computer and use it in GitHub Desktop.
Link new form to created card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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