Return fields for a specific document
Wednesday, February 20, 2019 at 10:31amHi,
We are currently using the UI to create the package, inject the fields, then use the Java SDK API to download the documents.  I found this below which retrieves a list of field values at the package level.  But we are looking in a way to retrieve the fields by documents.  
eslClient.getFieldValues(packageId)
Using this function below, it does not return the fields and values.  Can you please let me know if there is a function that can return the fields and values for a specific document?
document.getInjectedFields();  
      
                                    
Reply to: Return fields for a specific document
Thursday, February 21, 2019 at 04:09amString documentName = "cleaning_contract"; Document document = eslClient.getPackage(packageId).getDocument(documentName); for (Signature signature : document.getSignatures()) { for (Field field : signature.getFields()) { System.out.println(field.getStyle() + " : " + field.getId() + " : " + field.getName() + " : " + field.getValue()); } }BTW, the injectedFields attribute will only be set and used in Field Injection Use Case, so this function won't work for you. Hope this could help! Duo