alex62 | Posts: 3

get acceptance date from 'Electronic disclosure and Signature consent' document

0 votes

Hello!

we need to get date and time when user click to "Accept"  'Electronic disclosure and Signature consent' document.

could you please tell me how to this?

thanks,

Alex


Duo_Liang | Posts: 3776

Reply to: get acceptance date from 'Electronic disclosure and Signature consent' document

0 votes

Hi Alex,

 

Thanks for your post! Retrieving acceptance date from default consent form should be the same as how you get the signing date of any other signature types.

You can find it in package JSON:

"documents" > "approvals" > "accepted"

or SDKs:

        DocumentPackage package1 = client.getPackage(new PackageId("E6UB-Tk_zjG7U6rnlr1DFI-8Rmk="));
        for (Document document : package1.getDocuments()) {
            if("default-consent".equals(document.getId().getId())) {
                for (Signature signature : document.getSignatures()) {
                    if("[email protected]".equals(signature.getSignerEmail())) {
                        System.out.println(signature.getAccepted());
                    }
                }
            }
        }

TIPS: if you didn't find any "approvals" node under the default consent, probably it's because there's only sender who required to sign, and sender doesn't need to accept the default consent.

 

Duo 


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