Problem: Error occur when tries to set the value of custom field in after submit context. Solution:In after submit context in order to set the value to custom field it is better to use record.submitFields()
Tag: Set value to custom field
Setting VAT Number to the Custom Field
This article is to set VAT number to a custom field on a transaction record.