andrew_smith
01/22/2021, 8:44 PMsalesorder = record.load({..., isDynamic:false})
salesorder.setValue({fieldId:'trandate', value: new Date(), ignoreFieldChange:true})
salesorder.save()
appears to also be setting the transaction's shipdate
. This is in a user event script's aftersubmit function, there are no other script deployments in aftersubmit, all workflows affecting sales orders have logging turned on, none of them seem to be responsible, shipdate
is not set anywhere in the code. I've tried commenting out just the setValue line to check if something else is responsible. Have I forgotten to check something else or is this a bug?Sandii
01/22/2021, 8:45 PMandrew_smith
01/22/2021, 8:47 PMSandii
01/22/2021, 8:48 PMignoreFieldChange:true
in your set value call if you dont want the trandate setting to do anything?andrew_smith
01/22/2021, 8:52 PMandrew_smith
01/22/2021, 8:58 PM