Skip to content

Commit 5d31883

Browse files
author
nianiB9
authored
Merge pull request #201 from docusign/DEVDOCS-15801-JS-limit-change
DEVDOCS-15801-JS-limit-change
2 parents 7d1446d + 0e1f789 commit 5d31883

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/monitor/examples/getMonitoringData.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ const getMonitoringData = async (args) => {
1717
//ds-snippet-end:Monitor1Step2
1818

1919
//ds-snippet-start:Monitor1Step3
20-
const limit = 100; // Amount of records you want to read in one request
20+
const cursorDate = new Date();
21+
cursorDate.setFullYear(cursorDate.getFullYear() - 1);
22+
const limit = 2000; // Amount of records you want to read in one request
2123
let functionResult = [];
2224

2325
let complete = false;
24-
let cursorValue, cursoredResult;
26+
let cursorValue = cursorDate.toISOString().split('T')[0] + 'T00:00:00Z'
27+
let cursoredResult;
2528
const datasetApi = new docusign.DataSetApi(dsApiClient);
2629

2730
let options = {

0 commit comments

Comments
 (0)