Pass the function to be paginated first, then arguments to paginate itself, then any additional arguments to the function in order
cwm.paginate(cwm.FinanceAPI.getFinanceAgreements, {startPage: 1, pageSize: 500}, {conditions: 'inactiveFlag = false'}) Copy
cwm.paginate(cwm.FinanceAPI.getFinanceAgreements, {startPage: 1, pageSize: 500}, {conditions: 'inactiveFlag = false'})
Pass the function to be paginated first, then arguments to paginate itself, then any additional arguments to the function in order