- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2025 05:17 AM
Hi Community,
We have new integration requirement, need to fetch the ADO PBI data to ServiceNow
created script include and Ui page, but script include code not executing. so any suggestion?
UI Page code
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 11:13 AM
I used your suggestion and looks like it does need to be adjusted in ShrinivasprN code. I tweaked my UI Page and script include to try and replicate what was provided and was able to get:
Adjusted UI Page:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 10:32 AM - edited 08-21-2025 10:33 AM
If this is the expected response then the following lines are invalid references to the parsed json.
<tr><th>Title</th><td>${data.title}</td></tr>
<tr><th>State</th><td>${data.state}</td></tr>
<tr><th>Work Item Type</th><td>${data.workItemType}</td></tr>
Based on this the id is likely coming through correct while Title, State, and Work Item Type are incorrect. You'll need to correctly reference the parsed values inside data. It appears the values you are pulling are within the "fields" so the references would need to be updated to something like this:
<tr><th>Title</th><td>${data.fields.titlefield}</td></tr>
<tr><th>State</th><td>${data.fields.statefield}</td></tr>
<tr><th>Work Item Type</th><td>${data.fields.workitemtypefield}</td></tr>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 11:13 AM
I used your suggestion and looks like it does need to be adjusted in ShrinivasprN code. I tweaked my UI Page and script include to try and replicate what was provided and was able to get:
Adjusted UI Page:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 11:33 AM
i used below code
script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 11:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2025 11:44 AM
could you please provide whole script include here