How to know if created document is a draft
Hi, I'm creating a Sales Order through DI API. If the document does not have discount it add's it directly to SAP. If it has a discount it goes through an approval process in SAP and it is created as a Draft.
When I execute the .Add() procesude for the document, how can I determine if a draft was created or a final document?