Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi all,
Need help in creating a dynamic parameter to my query in power bi query as below:
(dtquery as text) =>
let
url="https://<instance>.xxx.com/api/now/table/incident?sysparm_display_value=true&sysparm_exclude_reference_link=true&sysparm_limit=1&sysparm_query=sys_created_onSTARTSWITH2020-07-08",
Source = Json.Document(Web.Contents(url,[Query=sysparm_query&"="&sys_created_on&STARTSWITH&dtquery]))
But I am getting this error :
An error occurred in the ‘’ query. Expression.Error: The name 'sysparm_query' wasn't recognized. Make sure it's spelled correctly.
Not sure what am I doing wrong here
Hi @Anonymous
So there is a clear indication that the below part is wrong.
[Query=sysparm_query&"="&sys_created_on&STARTSWITH&dtquery]
most probably you have not defined sysparm_query anywrer in power query.
@Mariusz Thanks for your reply, But if you see my URL I am actually using the parameter in the query:
(dtquery as text) =>
let
url="https://<instance>.xxx.com/api/now/table/incident?sysparm_display_value=true&sysparm_exclude_reference_link=true&sysparm_limit=1&sysparm_query=sys_created_onSTARTSWITH2020-07-08",
Source = Json.Document(Web.Contents(url,[Query=sysparm_query&"="&sys_created_on&STARTSWITH&dtquery]))
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 12 | |
| 11 | |
| 11 | |
| 7 | |
| 6 |