Created
April 5, 2020 22:45
-
-
Save iaindooley/57172e2fb1b09e5342df33ecaa8c09fb to your computer and use it in GitHub Desktop.
Set position custom field
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 setPositionCustomField(notification) | |
{ | |
var added = new Notification(notification).addedCard(); | |
added.list().cards().each(function(card) | |
{ | |
card.setCustomFieldValue("Order By",card.load().data.pos); | |
Utilities.sleep(1000);//you'll run into API rate limits otherwise | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment