Created
September 22, 2020 00:17
-
-
Save iaindooley/b09e1b3fc25b6bd6b005cffd49b5fc27 to your computer and use it in GitHub Desktop.
Update cards from Spreadsheet
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 updateCardsFromSpreadsheet() | |
{ | |
var vals = SpreadsheetApp.openByUrl("spreadsheeturl").getSheets()[0].getDataRange().getValues(); | |
for(var i = 0;i < vals.length;i++) | |
{ | |
var card = new Card({link: vals[i][0]); | |
card.setName(vals[i][1]); | |
card.setDescription(vals[i][2]); | |
card.postComment(vals[i][3]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment