G
G
GoodPirojok2020-11-27 21:35:28
PHP
GoodPirojok, 2020-11-27 21:35:28

Is it possible to send requests to the site when receiving data for 1s from it?

Good evening, tell me, is it advisable to start delving into 1C?
The task is to connect the receipt and consumption of goods to the site, and it is now driven in and maintained in 1C.
Is it possible in 1C to send requests to the store's website when updating data in its tables?
And what is this section called in 1C?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Adik Izat, 2020-11-27
@JaxAdam

As one of the solutions, I can offer my "crutch", which we "mutated" with the 1C developer.
1) Every 20 minutes, we uploaded from 1C data on the balance of goods in warehouses in the form of xml files via ftp to the server;
2) Every 20 minutes in the server scheduler we went to the url, which only works if you specify 3 get parameters (passwords). This url contained a script for loading data from the uploaded xml to the site database.
Uploading still goes like this: (1C to the server in the form of .xml) (pause 10 minutes) (Loading from xml to the database) (pause 10 minutes), etc.
If someone does it better, I'm waiting for advice in the comments) I've been wanting to automate this work for a long time)

D
Dmitry Kinash, 2020-11-28
@Dementor

Good evening, tell me, is it advisable to start delving into 1C?

If to solve the issue of data synchronization with summit - NO. It is cheaper to hire specialists who will do everything on a turnkey basis.
If for the development of 1C functionality and the site, in order to control the architecture and not depend on external contractors - YES.
Is it possible in 1C to send requests to the store's website when updating data in its tables?
And what is this section called in 1C?

Adines are different and in each everything is done in its own way. UPP is one story, UNF is another, and in the latest ERP and UT11 everything has been redone again. If you need a conceptual answer - YES, 1C has such an opportunity. You can set up periodic uploading of balances to the site (classic of exchanges), you can open a standard REST interface (or write your own, if there are nuances of the exchange) and pull the balances from 1C directly from the web server (crown or triggers). Or, according to the letter of your question (but I have never seen it in practice) - you can subscribe to a change in commodity balances and quickly transfer a small packet of data to the site for each receipt / expenditure operation - which warehouse, which SKU, with what characteristics, in what quantity - so the site will always have up-to-date information, but this scheme is sensitive to disconnections - you either need to make a queue of requests to the site,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question