- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2020 11:10 PM
Hello Team,
i have a requirement to show the report in power bi from servicenow problem table, please how to do this.
should i do power bi integration , if yes please provide the steps too as i am new to integration.
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Service Desk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 01:37 AM
I guess there some issue with the URL you are using:
Go to REST APi explorer and in there below the Prepare request option select the problem table from the drop down.
Click on the send button you will get a correct url for the request .
replace the url in code with the one you will get in the REST API explorer.
Remeber to change this part only.
https://<host>.com/api/now/table/problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 12:21 AM
Hello Raks,
After putting the blank query in power bi then clicked on "close and apply" and 2nd screen shot as result.
Could you please assist me on how i can see the report on power bi, will be much help full as not familiar with the power bi tool.
And just to inform you i haven't done any changes in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 12:41 AM
Copy this code and after you create a blank query goto advance editor and replace the default code with this one.Remember to replace the host name.
Then close and apply. It would work
let
Pagination = List.Skip(List.Generate( () => [WebCall=[result = {0}], Page = 0, Counter=0], // Start Value
each List.Count([WebCall][result])>0 or [Counter] =0, // Condition under which the next execution will happen
each [ WebCall = Json.Document(Web.Contents(" https://<host>.com/api/now/table/problem?&sysparm_limit=1000&sysparm_offset=1",
[Query=[sysparm_offset =Text.From([Counter])]])),
Page = [Page]+1,
Counter = [Counter]+1000// internal counter
]
) ,1),
#"Converted to Table" = Table.FromList(Pagination, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"WebCall", "Page", "Counter"}, {"WebCall", "Page", "Counter"}),
#"Expanded WebCall" = Table.ExpandRecordColumn(#"Expanded Column1", "WebCall", {"result"}, {"result"}),
#"Expanded result" = Table.ExpandListColumn(#"Expanded WebCall", "result")
in
#"Expanded result"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 12:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 12:55 AM
Do you have access to ServiceNow rest API? You can check the access in the REST API Explorer in the ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2020 01:04 AM
