Discussions
Creating a Case upon a field Change
Hello!
I've created a server side script that will create a case upon editing an employee record (tested fine). I want to limit the case creation to an edit of a particular field. I've tried to precede the case creation function with a changedField function but the deployment does not recognize the case creation function. Both are referenced in the script setup through Before Submit (changedField) and AfterSubmit (caseCreator).
Obviously, I'm doing something wrong - this being my first solo script. Any help is greatly appreciated.
UPDATE:
ah ha - I think using nlapiGetOldRecord will work so that I can compare old and new and then generate cases for only those that do not match.