There is a 1C 8.3 "Trade Management" configuration in which the document "Moving goods from one warehouse to another" is implemented as part of the internal distribution of goods.

It is necessary to organize data exchange with a third-party application, so that when moving goods into a third-party program, the document is automatically held in 1C (with registration in all logs, fixation in registers, in general, with automatic execution of all those actions performed by the “Hold and close” - As far as I understand, when you click this button, the function “Processing of holding” of the document “Moving goods” is called.

Question: Is this feature realizable via the REST interface? The incomprehensibility is that here http://v8.1c.ru/o7/201312rest/ it is stated that "Reports and processing, commands ..." are not available at the moment, it turns out that we cannot start processing using REST (say, holding a document) by our application?

    1 answer 1

    From the side of your application you can run. From the same text:

    In the REST interface, the details of configuration objects are available, operations for creating, reading, modifying and deleting data, as well as some methods of the embedded language are available. For example:

    For the document - Post () and Unpost ();

    The methods of the embedded language objects are executed by POST requests. For example, holding a document:

    POST / OData_Tests_Infobase/odata/standard.odata/Document_Invoice(guid'17ed2041-0345-11e3-b914-5404a6a68c42 ') / Post ().

    You do not need to start processing (i.e., as a configuration metadata object), you need to start carrying out the document itself , and this operation is available. Another thing is that the actions performed by the ProcessingConstruction () procedure in the document module are, strictly speaking, not the same actions that the “Execute and Close” button performs, since This button is located in the form of a document and in this form some events and other procedures can be defined, modifying the details of the document or performing other actions. So, before calling the Process Conduction () (Post ()) procedure, you need to ensure that the document is completely filled as it should.

    As I understand it, the name of the procedure “Processing Conduct ()” misled you. But the text "Inaccessible at the moment are reports and processing, commands ..." it has nothing to do; so called object method .