How to include filtering for multiple values in a pull request query #405
Unanswered
SorenBech2
asked this question in
Q&A
Replies: 1 comment 1 reply
-
There is a list of valid operations, and lists of IDs are not one of them. You'll have to re-think how you synchronize your data. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to pull several rows from the service with different ids. I have tried below pull configuration:
List Ids = ["Id1", "Id2"];
var pullResult = await PullAsync(cfg =>
{
cfg.SetParallelOperations(1);
cfg.AddPullRequest(options =>
{
options.Endpoint = new Uri("tables/tablename", UriKind.Relative);
options.Query.Where(x => Ids.Contains(x.Id) && !x.Deleted);
});
}, cancellationToken);
}
but get's an exception as per below.
System.NotSupportedException: 'value(System.Collections.Generic.List`1[System.String]).Contains(x.Id)' is not supported in a 'Where' clause
I have also tried with .Any with same result.
Can anyone help me as to how to apply a filter for multiple values in a query?
Beta Was this translation helpful? Give feedback.
All reactions