mailtodanish | Posts: 47 How to get all documents id of a package. Sunday, December 30, 2018 at 09:55pm 0 votes How to get all documents id of a package. I have package id and want document Id of all documents those are part of this package. December 30 Created January 21 Last Updated 5 years ago Last Reply 1 Replies 116 Views 2 Users 0 Likes 0 Links Answered by Duo_Liang Approved Answer Duo_Liang | Posts: 3776 Reply to: How to get all documents id of a package. Monday, December 31, 2018 at 01:25am 0 votes Hi there, Try this code below: DocumentPackage package1 = eslClient.getPackage(new PackageId("fH72KjmieKD7TYBr0z-huqVbMf0=")); List documentIds = new ArrayList>(); for (Document document : package1.getDocuments()) { documentIds.add(document.getId().getId()); } System.out.println("documentIds = "+documentIds); Hope this could help! Duo Log in or register to post comments
Approved Answer Duo_Liang | Posts: 3776 Reply to: How to get all documents id of a package. Monday, December 31, 2018 at 01:25am 0 votes Hi there, Try this code below: DocumentPackage package1 = eslClient.getPackage(new PackageId("fH72KjmieKD7TYBr0z-huqVbMf0=")); List documentIds = new ArrayList>(); for (Document document : package1.getDocuments()) { documentIds.add(document.getId().getId()); } System.out.println("documentIds = "+documentIds); Hope this could help! Duo Log in or register to post comments
Reply to: How to get all documents id of a package.
Monday, December 31, 2018 at 01:25am