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

Update CountRecordsAndFields to accommodate boolean fields #1541

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aagrossman
Copy link
Contributor

CountRecordsAndFields Class

  1. Handling Boolean Values:

    • The class was modified to handle counting boolean fields in addition to string fields.
  2. Error Handling:

    • Enhanced error handling to manage boolean exceptions.

ListActionsTest Class

  1. Setup Data for Testing:

    • Modified the makeData method to set the DoNotCall field for Contact objects using a boolean flag that alternates between true and false.
  2. Test Cases for Boolean Fields:

    • Added test cases to ensure the CountRecordsAndFields class correctly counts boolean values.
  3. Maintained Original Test Structure:

    • Ensured the existing tests for string field counting remain unchanged and functional.
    • Added new tests alongside existing ones to ensure comprehensive test coverage without disrupting the original test flow.

Disclaimer: This was created out of necessity by an advanced flow developer supported by ChatGPT 4o. Not a qualified apex developer so there may be a more elegant way to execute this. Works in my testing.

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 this pull request may close these issues.

None yet

1 participant