Account Code field not iterating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 09:55 AM
Hello,
We are having an issue with our Account Code field. Basically when we go to add a new account, the Account Code is automatically populated. However, it is read only and within the past couple of days it has started generating codes that already exist and thus gives a duplicate error.
When I looked at the dictionary record for Account Code, I find that the GlideFast tech that had been working with us had set the default value to: field: javascript: new generateCodeForTreePath().generateCode().
I don't know how to find these functions it is referencing. Am I barking up the wrong tree here? Is there something obvious I should check?
Thank you!
Joseph

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 11:18 AM
Hi Joseph,
generateCodeForTreePath seems to be a script include & generateCode is a function/part of the script include. Please try giving it a check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:43 PM
Thank you for your response! The solution ended up being a completely different thing than I thought. I followed the instructions here: https://docs.servicenow.com/bundle/utah-customer-service-management/page/product/customer-service-ma.... Basically, the system property associated with determining the value of the Account Code field had gone out of sync, so I had to reset the value.