如何通过ServiceNow REST API使用PowerBi运行Web URL查询,并且在开始日期和结束日期之间打开了事件字段

发布于 2025-01-31 12:26:11 字数 787 浏览 3 评论 0 原文

谁能告诉我如何在开始日期和结束日期之间使用field_at在事件表上使用Web URL ServiceNow REST API在PowerBi中运行Web URL查询?

例如,我有以下查询

https://asosdev.service-now.com/api/now/now/now/table/incident?sysparm_display_value=true&syssparm_exclard_exclude_exclude_rede_rede_rede_refere_refere_link_link=true间& sysparm_limit = 500

此返回号码,由简短描述和打开的_AT打开,限制为500行。

如何更新查询以返回opened_at '01 2022'和'2022年3月31日之间的数据,

网络上的任何地方都有一些示例查询,其中显示了如何编写这些Web URL REST API查询以在Power BI中构建报告。

另外,如何添加条款,例如简短描述包含“约翰”的位置,

非常感谢您的帮助和帮助。

Can anyone tell me how to run a web url Query in PowerBI using a web URL servicenow REST API on the Incident table using field opened_at between start and end date ?

For example I have the below query

https://asosdev.service-now.com/api/now/table/incident?sysparm_display_value=true&sysparm_exclude_reference_link=true&sysparm_fields=number%2Copened_by%2Cshort_description%2C opened_at%&sysparm_limit=500

This returns number,opened by, short description and opened_at for a ,limit of 500 rows.

How do I update the query to return data between opened_at '01 Jan 2022' and '31 Mar 2022'

Is there some example queries anywhere on the web that shows how to write these Web url rest api queries to build a report in Power BI.

Also how to add where clause e.g. where short description contains 'john'

Many thanks in advance for your help and assistance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

丿*梦醉红颜 2025-02-07 12:26:11

对我来说,最简单的方法是使用视图列表过滤器。一旦您向您显示正确的记录,就可以右键单击过滤器,然后选择复制查询或URL。然后,您可以在SeviceNow Rest探索中使用它,以进一步调整API调用

For me, the easiest way to do this is to use the view list filter. Once you get it to show you the right records, you can then right click on the filter and select to copy query or url. You can then use this within SeviceNow REST Explore to further tune your API call

如梦亦如幻 2025-02-07 12:26:11

您可以按建议使用列表过滤器,也可以使用REST API Explorer快速测试并迭代查询。

使用标准列表查询构建查询以确切定义您想要的内容,然后通过复制查询来捕获SYSPARM_QUERY值(右键单击查询,然后选择 coppy query query (或 URL获取)并将其粘贴到API Explorer中

  1. 。 -user-interface/page/page/lustlists/task/t_genencodquerystringfilter.html“ rel =” nofollow noreferrer“> enfor lonk noreferrer”>在这里输入链接说明
  2. 您更熟悉数据。要查看更多数据,您可以打开更多数据项目,然后从菜单中选择显示XML ,以查看该表格的所有数据。

You can use the list filter as suggested or use the Rest API Explorer to quickly test and iterate your queries. ServiceNow REST API Explorer

To build queries using the standard list query to define exactly what you want and then capture the sysparm_query value by copying the query (right click the query and select Copy query (or get from the URL) and paste that into the API explorer.

Using a List Filter has a few advantages

  1. It confirms your query is returning the correct results enter link description here
  2. You become more familiar with the data. To see more data you can open an item and then select Show XML from the menu to see all the data for that form. This is a quick way to learn what data is not shown on screen.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文