ehmad11 / netsuite-rest

Make requests to Oracle NetSuite REST Web Services.
MIT License
49 stars 20 forks source link

How to pass limit and offset as parameters? #25

Closed antonyRoberts closed 1 year ago

antonyRoberts commented 1 year ago

this works
return getNetSuite().request({ path: 'record/v1/salesOrder?limit=999' }) while this does not const limit = 500; return getNetSuite().request({ path: 'record/v1/salesOrder?limit=' + limit })

antonyRoberts commented 1 year ago
    path: `record/v1/salesOrder?limit=${limit}&offset=${offset}`,

Main issue was the offset must be divisible by the limit otherwise will return

"ERR_NON_2XX_3XX_RESPONSE"