Update Field Based on Another Table Data#1811
Update Field Based on Another Table Data#1811chetnadev wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Conversation
|
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. 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. |
|
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! |
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.