hi~~
I want to insert field before Send Approval Request but I have some error.
I hope SalesHeader.mark change into true mo matter action is success or fail. ( when i Send Approval Request then SalesHeader.mark change into true)
When action fail is important. ( mean 'No approval workflow for this record type is enabled.' the SalesHeader.mark change into true.)
I want to SalesHeader.mark := true; (default is false)
my code
method1
method 2
When I do
SalesHeader.Insert(true);
have error message The record in table Sales Header already exists. Identification fields and values: Document Type='Invoice',No.='S-INV******'
---------------------------------------------------------
update
SalesHeader.Insert(true) become SalesHeader.Modify() but not modify the field.
Thanks a lot!!