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

Validate the Rollup Criteria on Save #108

Closed
afawcett opened this issue Jan 18, 2015 · 3 comments
Closed

Validate the Rollup Criteria on Save #108

afawcett opened this issue Jan 18, 2015 · 3 comments

Comments

@afawcett
Copy link
Collaborator

The Criteria needs to be valid SOQL WHERE clause syntax. Not everyone is that familiar with this and struggles to find the correct syntax. Its not ideal that it does not validate until the rollup is used, especially if the Rollup is a scheduled one. This enhancement is to report problems with the validity of the Rollup Criteria on Save.

@wes1278
Copy link
Contributor

wes1278 commented Feb 5, 2015

How do you think this could be accomplished? I suppose we could be "hacky" and just dynamically build the query and try-catch it. Then add an apexmessage in the catch?

@afawcett
Copy link
Collaborator Author

afawcett commented Feb 7, 2015

Yeah there is no real 'SOQL validate' faclity other than to run it, i'd was thinking to give it an empty Set of master Id's to prevent it querying anything and yes catch the exception. It just seems it would be handy to know at the time of save, than find out on the child object itself or by monitoring the schedule job for errors.

@afawcett
Copy link
Collaborator Author

afawcett commented Feb 7, 2015

Fixed in v1.17

@afawcett afawcett closed this as completed Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants