Is there any way to override document number gener...
# ask-stanley-ai
j
Is there any way to override document number generated from advanced numbering rule?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that it is possible to override the document number generated from advanced numbering rule under certain conditions. If the option to allow overwrite of document number is turned off, you can still map something to that field, but it won't actually use it. This means that the system should generate something before your custom number gets inserted, thus working as normal. However, this assumes that in the setup of Auto-generated numbers, you don't have the 'allow override' option checked. In a scenario where you need all systems, except one, to have an auto-generated sales order number, and then when they send theirs in, allow them to set it to whatever they want, you can use a script to 'Generate Document Number on Save'. However, using auto-numbering without 'Generate Document Number on Save' can lead to issues, especially if you have integrations for creating documents. There have been situations where the same document number was duplicated when performing stress tests due to too many requests in a short time. Another approach to ensure unique document numbers when override of auto-generated numbers is allowed (specifically via web services) is to create a custom record with a custom field to act as your auto-increment counter. Then have a script that increments that counter. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834411621
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829467893
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828735352
Please provide your feedback on this answer.