Answer the question
In order to leave comments, you need to log in
How to create an invoice, payment request or other document from a third-party application in 1C?
There is a question of integrating CRM with 1C. At the initiative of the CRM system, invoices, payment requests and other documents should be created in 1C. At the 1C initiative, CRM should receive information about the receipt of payments on invoices. CRM is on the Web, on a different server (written in PHP).
I would like to implement everything in XML or SOAP, and with minimal programming from 1C.
Answer the question
In order to leave comments, you need to log in
I would write web services on both systems. From the 1C side of the web service for each document.
You will have to write a little code in 1C.
I would make web services both from the 1C side and from the CRM side.
Works great with XML 1C. There is the concept of "XDTO Schema" - which describes the fields of the XML file. You can work with XML as an object that has a set of fields.
From the 1C side, you will need to read XML, create a document and fill in its fields. After payment, 1C should send the document identifier and a sign that it has been paid to the CRM system.
The normal structure is as follows:
1. the status of the document changes in 1C
2. If the status is “paid”, then the link to the document is recorded in a special table (information register)
3. The scheduled task reads the records from the register every X seconds and sends them to the CRM system one by one, or in a batch.
4. If the answer came from CRM that everything is OK, then the entry from the register is deleted.
4.1 - If there is no answer, or it is different, then the scheduled task will try again in X seconds.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question