Unloading users from 1C ZUP to Bitrix24 or a true story about how to set up the integration of 1C-Bitrix24 with 1C ZUP

This happens in life, and it happens more often than we would like, although in general it is quite rare - it is necessary to integrate Bitrix24 with the ZUP. These friendly companies announced standard integration (but only for the B24 box), which is carried out according to the following schematic diagram:





  1. The exchange is always initiated by 1C. This is either a standard or self-installed and accessible exchange module that sends requests.





  2. On the B24 side, we have a script as an exchange point, to be more precise scripts (but more on that below), in one of which the call to the IncludeComponent method, which connects the controller. It also conceals the logic of exchange.





A regular exchange, in principle, if being an expert of one of the products can be mastered in a small number of minutes or hours - the information is presented on one of the official sites of 1C-Bitrix .





Prologue

We are bored with this, so we get involved in an adventure to integrate ZUP with B24 Enterprise, and to make it more interesting - we take a closed object, almost not even a business, but an institution with a multi-level and wonderfully branched security system.





In general, we have a B24 backup with anonymized data and an impersonal XML exchange file from the ZUP.





, โ€ฆ , . โ€“ , .





:





  • VMBitrix โ€“ 1 .





  • 1-24 ( ) โ€“ 1 .





  • , 1 โ€“ 1 .





  • VS Code + SSH FS โ€“ 1 .





  • Postman โ€“ 1 .





VMBitrix

, , CentOS 7 (, 6) . LAMP+ .





wget http://repos.1c-bitrix.ru/yum/bitrix-env.sh







# chmod +x bitrix-env.sh







# ./bitrix-env.sh







, . . . .





, VMBitrix , - 24.





1-24 Enterprise

, . , . , . , .





1

, , , . , . .





, , , .





VS Code + SSH FS

, , .





, ยซ 1ยป. , 1 , 24 โ€“ /bitrix/admin/1c_intranet.php.





, . (intranet) /bitrix/modules/intranet/tools/1c_intranet.php.





. BitrixFramework MVC.





intranet.users.import.1c IncludeComponent. BitrixFramework MVC.   , , โ€“ , .





Postman

, .





โ€“ , : postman.com [ ].





  - , 24 1.





:





  • โ€“ GET









1 , ยซ zip, ยป . โ€“ XML โ€“ .





, :





GET http:///bitrix/admin/1c_intranet.php?mode=checkauth







PHPSESSID. .





:





GET http:///bitrix/admin/1c_intranet.php?mode=init







/ . - zip=no







file_limit=204800



, .





:





GET http:// /bitrix/admin/1c_intranet.php?mode=file&PHPSESSID=tmfi6bf67llse3akv7cv13m6h8&filename=import.xml







success. โ€“ Body , GET- filename.





:





GET http:// /bitrix/admin/1c_intranet.php?mode=import&PHPSESSID=tmfi6bf67llse3akv7cv13m6h8&filename=import.xml







, . , . :





progress







  .







 





progress







  .







 





progress







  .







 





progress







  .







 





progress







   .







 





progress







  .







 





progress







 2  2 .







 





progress







  .







 





progress







 11  11   .







 





progress







   .







 





success





  .







 





, - , . , - .





, , , . โ€“ .








All Articles