Forum Discussion
spocx
4 years agoHelper I
Error handling in paginated REST API call - ServiceNow
Hi community A couple of years ago, the amazing ImkeF helped develop this query that could paginate ServiceNow data until the end. It has been working pretty good, but I often get the following er...
spocx
4 years agoHelper I
Thank you for the answer lbendlin But I am not sure I understand. Should I use your code example to troubleshoot the errors I get?
lbendlin
4 years agoSuper User
yes, the code example demonstrates both approaches
try Json.Document(...) otherwise "ok"
which tries to fetch a JSON string (with dataset refresh error details) but falls back to "ok" if that fails, and
Web.Contents(URL,[ManualStatusHandling = {400}])
which says to ignore error 400 for this scenario.