rajiv-nagpures…

Question about Purging eSignLive Packages

0 votes
Are there any utilities for purging expired eSignLive packages? In other words, is there anyway we could have you purge packages that are older than a certain specified number of days? Or maybe purge all packages created before a certain date?

Reply to: Question about Purging eSignLive Packages

0 votes
Hey Rajiv, Does the customer have access to the API? If there is not an "auto-expiration" setting in back office, they'd have to set up their own code to do something like this. Let me know what technology they're working with, if they have API access and I will look at writing some sample code to help. If they don't have access, we'll have to file an enhancement request.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Question about Purging eSignLive Packages

0 votes
Hi Michael, The customer's account is integrated, they use Java SDK to create eSignLive packages; All their packages have the following: {"sdk":"Java v10.10.1","origin":"api"}

Reply to: Question about Purging eSignLive Packages

0 votes
Something like this would allow them to delete packages older than 30 days:
public static void main( String[] args ) {
    	Date date1 = DateTime.now().minusDays(300).toDate();
        Date date2 = DateTime.now().minusDays(30).toDate();
        EslClient eslClient = new EslClient( API_KEY, API_URL );
        Page currentPage = eslClient.getPackageService().getUpdatedPackagesWithinDateRange(PackageStatus.COMPLETED, new PageRequest(0,50), date1, date2);
        int totalPackages = currentPage.getTotalElements();
        while (totalPackages > 0){
        	for (DocumentPackage mydocpackage : currentPage){
        		eslClient.getPackageService().deletePackage(mydocpackage.getId());
        	}
        	currentPage = eslClient.getPackageService().getUpdatedPackagesWithinDateRange(PackageStatus.COMPLETED, new PageRequest(0,50), date1, date2);
        	totalPackages = currentPage.getTotalElements();
        }
    }
Tell them to be careful with this (test in sandbox) as when they run this, they will permanently delete the packages.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


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