Forum Discussion
Anonymous
6 years agoNot applicable
Acceda al valor string de DataSourcePath
Por lo tanto, después de escribir una URL de Api (por ejemplo, https://api.myapi.com) en el parámetro BaseUrl de mi conector de datos personalizado, ¿es posible capturar ese valor de cadena programát...
v-juanli-msft
6 years agoCommunity Support
Hola @kasarrumann
¿Este problema es amado?
Si es amado, ¿podría aceptarlo amablemente como una solución para cerrar este caso y ayudar a los otros miembros a encontrarlo más rápidamente?
Si no, por favor no dude en ha decirmelo.
Saludos
Maggie
Anonymous
6 years agoNot applicable
Hola Maggie, no se resolvió desafortunadamente.
No puedo tener una tabla de todas las URL de clientes diferentes que se muestran aunque eso resolvería el problema aquí.
Mi conector es un navegador que también contiene funciones anidadas similares a este pseudocódigo de ejemplo:
shared Navtable.Contents = (userURL) as table =>
let
Source = Json.Document(Web.Contents(URL & "Some path that lists api", Headers etc)
createNavtable here
table#(CreateNestedNavtable)
in
Navtable;
CreateNestedNavTable = () as table =>
let
objects = #table(
{"Name", "Key","Data", "ItemKind", "ItemName","IsLeaf"},{
{"Item1", "item1", #table({"Column1"}, {{rows}), "Table", "Table", true},
{"myFunc", "func1", myFunction(), "Function", "Function", true}
}),
NavTable = Table.ToNavigationTable(objects, {"Key"}, "Name", "Data", "ItemKind", "ItemName", "IsLeaf")
in
NavTable;
myFunction = () =>
let
Source = Json.Document(Web.Contents(URL** & "Some other path"))
**get the URL parameter value which was required from Navtable.Contents(URL) which is
now stored,
as DataSourcePath for that query through M code instead of a new myFunction = (URL)
parameter. Is there anything similar to Extention.CurrentCredential()[Username] for a
queries' DataSourcePath metadata?
in
myFunctionResult