mailtodanish

How to get all documents id of a package.

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.

Approved Answer

Reply to: How to get all documents id of a package.

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

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off