Use the context type CREATE to avoid submitting the script after editing existing custom record entries.
if (context.type !== context.UserEventType.CREATE)
Revised from this previous article.
Use the context type CREATE to avoid submitting the script after editing existing custom record entries.
Revised from this previous article.