Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created April 10, 2020 05:34
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/808efbe3f906bde7df74b458acaf2e46 to your computer and use it in GitHub Desktop.
Save iaindooley/808efbe3f906bde7df74b458acaf2e46 to your computer and use it in GitHub Desktop.
Copy custom fields
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