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

Run expression for a batch of records? #128

Closed
liumiaowilson opened this issue Mar 29, 2024 · 1 comment · Fixed by #136
Closed

Run expression for a batch of records? #128

liumiaowilson opened this issue Mar 29, 2024 · 1 comment · Fixed by #136
Assignees

Comments

@liumiaowilson
Copy link

Hi, I have a scenario that we want to enable admins to configure an expression as a criteria to filter a list of records in apex. With a batch of records, how can we run the expression against each record? If we pass in the record id as the context, then each query will be issued when running the expression and this will exceed the limit. If we pre-fetch the records and pass in the record as the context, we don't know which fields are used in the expression so that we can query. Do you have any suggestions here?

@cesarParra
Copy link
Owner

Hi @liumiaowilson

Unfortunately that wouldn't be easily possible right now without some kind of workaround, precisely because of the reasons you mention. This is something that is high in my list of priorities to implement.

@cesarParra cesarParra self-assigned this May 2, 2024
@cesarParra cesarParra linked a pull request May 2, 2024 that will close this issue
7 tasks
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

Successfully merging a pull request may close this issue.

2 participants