Skip to content

Conversation

chetnadev
Copy link
Contributor

My first 2025 Hacktoberfest submission
The basic use case of this script is Let’s say you want each incident record to store the caller’s department, but this info is only on the user profile.
This script pulls it from the user and updates all related incident records.

@rohi-v rohi-v self-assigned this Oct 5, 2025
@rohi-v
Copy link
Contributor

rohi-v commented Oct 5, 2025

Hi @chetnadev

Thank you for your contribution!

Instead of querying the user table (which can be quite large depending on the number of users) to find incidents related to a user, we can directly query the Incident table and dot-walk to the user’s department for mapping.
Also, since Department is already dot-walkable from the user record, it can be displayed directly on the form without creating a custom field.

Just a quick note: this repository already contains similar examples, so please check for duplicates or overlapping use cases before submitting.

Closing this for now. Once you make the suggested changes, feel free to re-open this Pull Request or create a new one.

@rohi-v rohi-v closed this Oct 5, 2025
@rohi-v rohi-v added the hacktoberfest-accepted The PR is accepted for Hacktoberfest, regardless of being merged or not label Oct 5, 2025
@rohi-v
Copy link
Contributor

rohi-v commented Oct 5, 2025

Hi @chetnadev

we appreciate the effort you’ve put into this contribution. Since this is your first PR, we’ve labeled it as hacktoberfest-accepted so it still counts toward your Hacktoberfest progress. Thank you for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted The PR is accepted for Hacktoberfest, regardless of being merged or not

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants