The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi there,
I am trying to get a call record list from our VOIP Provider.
The given details are:
Name In Type Required Description
date | query | string(date) | true | YYYY-MM-DD |
page | query | integer(int32) | false | Page of results to fetch. |
per_page | query | integer(int32) | false | Number of results to return per page. |
I tried to fetch it with the following:
= Json.Document(Web.Contents("https://api.placetel.de/v2/call_detail_records", [Headers=[Authorization="xxxx", date= DateTime.Date(DateTime.LocalNow()),today= date,
year = Number.ToText(Date.Year(today)),
month = Text.PadStart(Number.ToText(Date.Month(today)),2,"0"),
day = Text.PadStart(Number.ToText(Date.Day(today)),2,"0"),
mydate = year&"-"&month&"-"&day, page="10", per_page="50"]]))
The solution is:
Expression.Error: The value "#date(2020, 3, 20)" cannot be converted to the type "Text".
Details:
Value=20.03.2020
Type=[Type]
Any help for me?
Thanks a lot!
Hello everyone,
I really, really need help with his, I have a deadline I need to met.
You would be a fantastic help!
Kind regards
Alex
For dates, you should use Date.ToText instead of Number.ToText function.
https://docs.microsoft.com/en-us/powerquery-m/date-totext
Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi there,
I tried it, now it says:
Expression.Error: Der Wert "23" kann nicht in den Typ "Date" konvertiert werden.
Details:
Value=23
Type=[Type]
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
83 | |
75 | |
51 | |
42 |
User | Count |
---|---|
140 | |
113 | |
73 | |
64 | |
62 |