Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adrianmi8/13286cfc8cc3a72c3cf1c4325bf215ed to your computer and use it in GitHub Desktop.
Save adrianmi8/13286cfc8cc3a72c3cf1c4325bf215ed to your computer and use it in GitHub Desktop.
Multi Carrier - Global Method for Synchronous Printing
Id prefId = 'a025800000bs9Qx';
Id userId = UserInfo.getUserId();
List<Id> attIds = new List<Id>();
attIds.add('00P4I00001124w1');
attIds.add('00P4I00001124lS');
List<Attachment> attachments = [SELECT Id, ParentId, Name, ContentType, Body FROM Attachment WHERE Id IN :attIds];
List<String> statuses = zkmulti.ShipmentInterface.printLabels(attachments, prefId, userId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment