Created
April 10, 2020 05:34
-
-
Save iaindooley/808efbe3f906bde7df74b458acaf2e46 to your computer and use it in GitHub Desktop.
Copy custom fields
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 copyCustomFields(notification) | |
{ | |
var notif = new Notification(notification); | |
var card = notif.attachedLink().card(); | |
card.cardsLinkedInAttachments().first().customFields().each(function(field) | |
{ | |
notif.card().setCustomFieldValue(field.name(),field.value()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment