I created a query which I want to be able to filter based on a column from another table, how can I achieve this as it doesn't seem to work?
let
Source = Salesforce.Data("https://login.salesforce.com/", [CreateNavigationProperties=true]),
MyCustomObject = Source{[Name="MyCustomObject "]}[Data],
accnt = Source{[Name="Account"]}[Data],
accntId = Table.SelectColumns(accnt, {"Id"}),
accntList = Table.ToList(accntId, Combiner.CombineTextByDelimiter(",")),
#"Filtered" = Table.SelectRows(MyCustomObject, each List.Contains(accntList, [AccountId__c]))
in
#"Filtered"
I've also tried using List.Contains(accnt[Id])
but no joy
If I changed it to each (AccountId__c = "Some Value Here")
it works but not with a list.
Thanks