get acceptance date from 'Electronic disclosure and Signature consent' document
Wednesday, April 28, 2021 at 09:59amHello!
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
Reply to: get acceptance date from 'Electronic disclosure and Signature consent' document
Wednesday, April 28, 2021 at 10:30amHi 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
Reply to: Hi Alex, Thanks for your…
Wednesday, April 28, 2021 at 10:57amthanks, got it