This topic contains 1 reply, has 2 voices, and was last updated by  Duo_Liang 2 weeks, 5 days ago.

  • Author
    Posts
  • Participant
    mailtodanish
    Newbie
    Member since: 20.11.2017
    Number of posts: 16

    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.

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 608
    Approved answer

    Score

    0

    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 Junior Technical Evangelist

You must be logged in to reply to this topic.