Forum Discussion
DocumentDB Parameters
- Anonymous9 years ago
NielsDecoene,
How about changing query to the following?
DocumentDB.Contents(#####, [Query = "SELECT c.id AS Leverancier_ID, c.leverancier_naam AS Leverancier FROM c WHERE c.type = ""Leverancier"" AND c.project_id = """& Project & """"])
Regards,Lydia
Static Query Source overview as follows:
Static Query Advanced Editor:
let
Source = DocumentDB.Contents("https://selectieproject.documents.azure.com:443/", "selectieprojectDB", null, [Query = "SELECT c.id AS Leverancier_ID, c.leverancier_naam AS Leverancier FROM c WHERE c.type = ""Leverancier"" AND c.project_id = ""Project B"""]),
#"Expanded Document" = Table.ExpandRecordColumn(Source, "Document", {"Leverancier_ID", "Leverancier"}, {"Document.Leverancier_ID", "Document.Leverancier"})
in
#"Expanded Document"
Hope this helps
NielsDecoene,
How about changing query to the following?
DocumentDB.Contents(#####, [Query = "SELECT c.id AS Leverancier_ID, c.leverancier_naam AS Leverancier FROM c WHERE c.type = ""Leverancier"" AND c.project_id = """& Project & """"])
Regards,
Lydia
- NielsDecoene9 years ago
Helper I
Well that worked, putting three " does the trick, who would have thought...
Any explication about why three are required?
I'll mark this as answered, thanks alot!