Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pageToken not working #12

Open
xbln opened this issue Jan 16, 2023 · 1 comment
Open

pageToken not working #12

xbln opened this issue Jan 16, 2023 · 1 comment

Comments

@xbln
Copy link

xbln commented Jan 16, 2023

With my first call I get a "completed" state and the following response:

{
"jobId": "84c064ad-3c6a-4ef7-aee7-980e5c17cd381673861387581",
"files": [
"Flcym6uf5.zip",
"Flcym6w90.zip",
"Flcym6xs6.zip",
"Flcym6z1j.zip",
"Flcym707r.zip",
"Flcym71e7.zip",
"Flcym72f8.zip",
"Flcym73ch.zip",
"Flcym74ej.zip",
"Flcym756q.zip"
],
"status": "completed",
"createdDate": "2023-01-16T09:29:47Z",
"completedDate": "2023-01-16T09:39:30Z",
"viewTemplateName": "myTrainingTemplate",
"filters": {
"updatedDateFrom": "2022-01-01T00:00:00Z",
"updatedDateTo": "2022-12-31T23:59:59Z"
},
"documentType": "Invoice",
"selectAttributesSnap": [
"InvoiceNumber",
"UniqueName",
"InvoiceDate",
"LastModified",
"InvoiceSourceDocument",
"InvoiceStatusString",
"Supplier",
"Order",
"ServicePeriod",
"TotalCost",
"TotalInvoiced",
"MaxDiscountApplicable"
],
"filterExpressionsSnap": [
{
"name": "updatedDateFrom",
"field": "TimeUpdated",
"op": ">",
"defaultValue": "2018-03-01T23:59:59Z"
},
{
"name": "updatedDateTo",
"field": "TimeUpdated",
"op": "<=",
"defaultValue": "2023-12-31T23:59:59Z"
}
],
"debug": false,
"emitNull": true,
"displayStateString": false,
"includeInactive": false,
"reportingApp": null,
"pageToken": "QjdLV0FhUEJldjRmdE9F",
"totalNumOfRecords": 18400,
"currentPageRecordsCount": 10000,
"totalNumOfPages": 2,
"currentPageNum": 1,
"totalNumOfFiles": 19,
"filesInCurrentPage": 10,
"requestId": null
}

My second call is:

https://eu.openapi.ariba.com/api/procurement-reporting-jobresult/v2/prod/jobs/84c064ad-3c6a-4ef7-aee7-980e5c17cd381673861387581?realm=uits&pageToken=QjdLV0FhUEJldjRmdE9F

as I added the pageToken parameter.

Unfortunately the result is the same as my first call. Obviously the pageToken was not taken. I also tried with "PageToken" and "pagetoken". It always returns the first page.

image

@JoelRodrigues58
Copy link

Hello,

I have exactly the same problem.

Can help, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants