O
O
Ogureccc2018-11-13 18:57:37
Drupal
Ogureccc, 2018-11-13 18:57:37

Can 1C, when taking orders from the site with an xml file, also take images?

Can 1C, when taking orders from the site with an xml file, also take images?
When placing an order on the site, users have the opportunity to attach images, the site gives 1Ske an xml file with orders, is it possible to transfer these images to 1C with an xml file either as a link or in base64 format? It sounds crazy, I understand, but the problem has been hanging for 2 weeks. Tried to google this question, but found nothing on this topic.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2018-11-14
@AlexeyCaTHaR

Set event handling = when creating an order.
In the method, you can open the image corny through file_get_contents.
Add the information received in the order field. Specify the receipt of this field in the download.

N
nihi1ist, 2018-12-10
@nihi1ist

Maybe in Base64 format. In the same xml file. If the configuration is typical, then there is a common module AttachedFilesUtility. As an example of calling a procedure from a module:
And so, it is better to look towards data exchange. If you configure the upload in the desired format, as well as the exchange when the file appears. That I think will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question