I am trying to create a sales invoice integration. When I try an create the header in Dynamics Business Central. I get a C/AL error "The following C/AL functions are limited during write transactions because one or more tables will be locked. Form.RunModal is not allowed in write transactions. Codeunit.Run is allowed in write transactions only if the return value is not used. For example, 'OK := Codeunit.Run()' is not allowed. Report.RunModal is allowed in write transactions only if 'RequestForm = FALSE'. For example, 'Report.RunModal(...,FALSE)' is allowed. XmlPort.RunModal is allowed in write transactions only if 'RequestForm = FALSE'. For example, 'XmlPort.RunModal(...,FALSE)' is allowed. Use the COMMIT function to save the changes before this call, or structure the code differently"
Is there a schema that tells me what fields need to be filled in to create the header and with what? So far it has been interesting figuring out the bill to option and the ship to option.

Report
All responses (
Answers (