Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bmenicucci
New Member

Web.Contents passing a list of values

Hello folks,

I need your help to solve a connection issue with SNow: I need to create an URL that filters tickets according to a list I have in another table but I'm struggling to pass the list of values....

Here's my script:

 

let
Tickets = Table.SelectColumns(Details, "Ticket_no"),
#"Filtered Ticket Rows" = Table.SelectRows(#"Tickets", each ([Ticket_no] <> null)),
#"Filtered Ticket Rows1" = Table.SelectRows(#"Filtered Ticket Rows", each Text.StartsWith([Ticket_no], "RITM")),
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Filtered Ticket Rows1", {{"Ticket_no", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Ticket_no"),
#"Split Column by Delimiter1" = Table.ExpandListColumn(Table.TransformColumns(#"Split Column by Delimiter", {{"Ticket_no", Splitter.SplitTextByDelimiter("-", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Ticket_no"),
#"TicketList" = Text.Combine(Table.ToList(#"Split Column by Delimiter1"), ","),
Source =Json.Document(Web.Contents("https://datasource/servicenow/api/now/table/sc_req_item&sysparm_limit=100&sysparm_display_value=true...", #"TicketList"
))
any help will be appreciated!
Thanks,
Brunello
1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @bmenicucci ;

1.Open Power BI Desktop and click Get Data -> ODBC. 
2.Select the DSN in the menu. If you know the SQL query you want to use to import, expand the Advanced Options node and enter the query in the SQL Statement box.
3.Select tables in the Navigator dialog.The available tables. (Salesforce is shown.)

4.Click Edit to edit the query. The table you imported is displayed in the Query Editor. In the Query Editor, you can enrich your local copy of ServiceNow data with other data sources, pivot ServiceNow columns, and more. Power BI detects each column's data type from the ServiceNow metadata retrieved by the driver.

Author and Share Power BI Reports on Real-Time ServiceNow Data (cdata.com)


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.