Data through REST API into power bi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2020 10:39 PM
Team,
Need help, I am trying to get Servicenow data into power bi using table API. I am somewhat successful but came to a roadblock as I can only able to extract 4000 records in a single query. Although I have read that there is a default limit of 10000 records a query can fetch.
My idea is to get the 10000 records in power bi using query and then I will use incremental refresh to update the data in my data model.
Any help is highly appreciated.
- Labels:
-
Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2020 01:09 AM
Hi,
how many records are there in task table since it would include all child tables as well?
what is the http status code and the error message?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2020 11:24 AM
Yes, I've run into this in the past. It's not making it to 10k because of the amount of data which is being exported. It's hitting a timeout first.
Basically what's happening is you're pulling every field on the task table which is a lot when you think about Problem/Change/etc. I would recommend making a decision on which fields you actually need.
If in fact you need every field or more than 10k records you can loop the Get call multiple times using the sysparm_offset & sysparm_limit parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2020 10:54 AM
There are many reasons not to export your data (i.e., timeliness, security, actionability), but if are, try an export set or a 3rd party tool.
Keeping the data in sync can be a challenge (if any fix script or other processes disable sysAutoFields). You want to make sure your admins are fully in the loop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 11:14 PM
Hello Raks,
As you are getting reports in power bi from servicenow, could you please tell me how you did this as i have a similar requirement.
means how you are passing this query? from where ? and how?
https://xxx.service-now.com/api/now/table/task?sysparm_display_value=true&sysparm_exclude_reference_link=true
Thanks for the help in advance.
this is my question in comunity