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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kroman
Helper II
Helper II

Send From and To dates in graph.microsoft.com/beta/communications/callRecords/getPstnCalls as Query

Hi All

I am looking for the way to change

 

 

OData.Feed("https://graph.microsoft.com/v1.0/communications/callRecords/getDirectRoutingCalls(fromDateTime="&DateTime.ToText(Date.AddDays(DateTime.LocalNow(),-1),"yyyy-MM-dd")&",toDateTime="&DateTime.ToText(DateTime.LocalNow(),"yyyy-MM-dd")&")", [ Authorization = "Bearer " & access_token ], [ ExcludedFromCacheKey = {"Authorization"}, ODataVersion = 4, Implementation = "2.0" ])

 

 

to something like

 

 

Web.Contents("https://graph.microsoft.com/v1.0/communications/callRecords/getDirectRoutingCalls",      
   [  Headers = [#"Content-Type"="application/json", #"Authorization"="Bearer " & access_token],           
  Query = 
     [#"fromDateTime"=DateTime.ToText(Date.AddDays(DateTime.LocalNow(),-1),"yyyy-MM-dd"),
                   #"toDateTime"=DateTime.ToText(DateTime.LocalNow(),"yyyy-MM-dd")]        ]   )

 

 

I am trying to use it in Power BI query and its required to avoid dynamic source issue on dataset refresh in PBI service
Thanks

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You will need to use RelativePath rather than Query.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

You will need to use RelativePath rather than Query.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.