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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Detenga el parámetro de consulta Web.Contents de la codificación

Intento enviar lo siguiente en Power Query:

Web.Contents(
     www.myurl.com/stuff.json
     , [
          Query = [
               created = "[Select+Date+Range]&created_custom_gte=[" & EarlierstDate & "T00:00:00.000000+0000]"
          ]
     ]
)

Sin embargo, cuando realmente realiza la llamada web, está codificando el parámetro "created" que está causando un error en la llamada a la API.

Esperado: www.myurl.com/stuff.json?created-[Select+Date+Range]%26created_custom_gte-[2020-05-01T00:00:00.000000+0000]

Noticias: www.myurl.com/stuff.json? %5BSelect%2BDate%2BRange%5D%26created_custom_gte%3D%5B2020-05-01T00%3A00%3A00.000000%2B0000%5D

¡Gracias!

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

¿Alguna solución?

Syndicate_Admin
Administrator
Administrator

Lo mismo aquí. ¿Alguna sugerencia?

Syndicate_Admin
Administrator
Administrator

@jgalus , Mirando cómo url debe ir creo que debe ser como

Web.Contents(
"www.myurl.com/stuff.json",
, [
Consulta á [
creados en "[Seleccionar+Fecha+Rango]&created_custom_gte-[" & EarlierstDate & "T00:00:00.000000+0000]"
]
]
)

Hay una buena referencia en la URL dinámica aquí -https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-i...

Anonymous
Not applicable

@amitchandak

Hemos detectado un problema desconocido. ¿Parece el código exacto que puse en el post original?

Como se indica, la cadena de consulta codifica el valor del par de valores de clave, lo que hace que se produzca un error en la solicitud de API.

Greg_Deckler
Super User
Super User

@ImkeF @edhans


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors