Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to filter with GetEnrichedFlatActivitiesAsync #117

Open
ekaganlv opened this issue Sep 18, 2023 · 0 comments
Open

Unable to filter with GetEnrichedFlatActivitiesAsync #117

ekaganlv opened this issue Sep 18, 2023 · 0 comments

Comments

@ekaganlv
Copy link

ekaganlv commented Sep 18, 2023

I am retrieving a list of activities and I have the need to filter by ActorId or by a custom field. Neither one works. Here's my code, it's super simple but doesn't seem to produce the desired result and I am always getting the same list back.

var options = GetOptions.Default.WithOffset(pagesLoaded * PAGE_SIZE).WithLimit(PAGE_SIZE);
if (selectedActorId.HasValue)
{
options = options.WithUserId(selectedActorId.ToString());
}
if(SelectedProjectId.HasValue)
{
options = options.WithCustom("project_id", SelectedProjectId.Value.ToString());
}
options = options.WithReaction(ReactionOption.With().Counts().Own());

var activities = await feed.GetEnrichedFlatActivitiesAsync(options);

Please help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant