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/57172e2fb1b09e5342df33ecaa8c09fb to your computer and use it in GitHub Desktop.
Save iaindooley/57172e2fb1b09e5342df33ecaa8c09fb to your computer and use it in GitHub Desktop.
Set position custom field
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