Answer the question
In order to leave comments, you need to log in
How to synchronize 1C: Enterprise with an external system?
My task is to synchronize data on working with employees (adding, moving within the organization, dismissal) with another third-party system that is not related to 1C.
Since I am a complete zero in 1C, I don’t know at all from which side to approach the solution of the problem. At the moment, the following questions are not clear to me:
1. How is it better to interact with an external system if the data source is 1C? REST, SOAP + WSDL, something else?
2. Is there any global event model in 1C. So that I can subscribe to the "employee added" event and know what happened in the place I need. Or will I have to edit the form for adding employees and place the calls I need inside it?
3. How are such improvements distributed to 1C user configurations? Is there any means of export / import, installation maybe? Or will I have to manually edit the user config each time?
Thanks for the help!
Answer the question
In order to leave comments, you need to log in
1) The web services you mentioned are intended for external consumers. If 1C is the initiator, then almost all tools are available to you (except for especially exotic ones) - exchanges via file balls, FTP, web services, COM connections, direct uploads to the DBMS with ODBC drivers, and so on.
2) The platform has a special "event subscription" object, which allows you to insert your own executable code for events that are associated with a specific directory, their list or each of the system directories without editing the same directories. The same applies to documents (only the list of processed events is more extended) and some other objects.
3) Absolutely "manually" is not necessary. You can make your own "framework" configuration, which you will implement into the user one through the "configuration comparison/combining" mechanism, thus transferring your subscriptions to events and common modules with their processing into it. Thus, companies such as Bitrix, Agent Plus, etc. distribute their integration settings. For managed configurations (these are the latest developments of 1C - ERP, Accounting 3, Trade Management 11, Small Business Management, and so on), it has recently become possible to create extensions. You can read an overview here - https://habrahabr.ru/company/1c/blog/320018/
From experience (I personally experienced it myself), there are options:
1. The platform has subscriptions to events (answer to point 2): when changing / adding / recording etc. reference/document object etc, additional actions can be described in more detail . Anything can be organized: uploading data to any file format, connecting, for example, via ADO to MS SQL. With files, the minus is that there should be a shared area for two systems (1C - write access, the second system for reading).
2. Scheduled task 1C ( Google ) - an analogue of services. We write a function (again, to upload data to a file or a connection to the DBMS), set the schedule.
3. Connecting to 1C Enterprise via COM object. In the target system, if we have the appropriate tools, we create a COM connection to 1C and do everything we need using the methods of the 1C platform. The method is quite controversial, but it also works.
3. How are such improvements distributed to 1C user configurations? Is there any means of export / import, installation maybe? Or will I have to manually edit the user config each time?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question