1b.app
Link copied -

Receiving a file from 1s to order

Answers:

Good afternoon.
Specify where (FTP 1C or 1C will upload to the server with OneBox) will you receive the file and what needs to be done with it - just attach it to the order? How to determine which one?
20.01.2022, 16:37
Original comment available on version: ru

Good afternoon!
We can most likely go to the OneBox server
The scheme is as follows
Order is created in OneBox
Then at a certain stage it gets into 1C by API
1ska processes the order and sends back order statuses
OneBox, in turn, accepts these statuses and switches them at home
when the order was processed by 1s, we would like to receive an invoice in OneBox in PDF format exactly in the order that is needed.
everything works except getting the PDF file in OneBox
process example https://crm.ohholding.com.ua/admin/customorder/project/422691/edit/
the status "ready to receive" was sent to us by 1ska and this means that the goods can be picked up by the manager
further we want to add it. field with type "file" receive an invoice
20.01.2022, 16:46
Original comment available on version: ru

Or maybe your 1C add a file through the rest api? There are also separate methods for adding files.
As an option - you can modify one of them so that the file is not added to the comments - but to the additional field of the process you are looking for
25.01.2022, 16:47
Original comment available on version: ru

Thanks for the answer
I correctly understood that it is necessary to complete the revision so that the file gets into the add. field?
Can you rate?
and tell me by which method from the instructions you can transfer a file from 1s?
We have OneBox MVP
25.01.2022, 16:57
Original comment available on version: ru


Morozov Sergey Sergeevich wrote:
I correctly understood that it is necessary to complete the revision so that the file gets into the add. field?
Can you rate?

1 hour to finalize in the specified API the reception of the parameter with the key of the additional field of the process where to write the identifier of the added file

Morozov Sergey Sergeevich wrote:
and tell me by which method from the instructions you can transfer a file from 1s?
We have OneBox MVP

https://crm.ohholding.com.ua/api/file/add/
authorization is the same as in other methods
transfer the file as when uploading files using the POST method (when the array is tmp_name | name | type https://www.php.net/manual/ru/features.file-upload.post-method.php )
orderid parameter - to which process to add the file in the comment
26.01.2022, 13:55
Original comment available on version: ru

Good afternoon, Maxim!
Can you bill me for 1 hour?
Account on TOV Security Holding
26.01.2022, 13:57
Original comment available on version: ru



Good afternoon!
Can you help me figure it out more:
With what method of the OneBox API, with what parameters should I transfer the file from 1s?
Can you please describe in detail the method of transferring the file.
11.02.2022, 15:33
Original comment available on version: ru

https://crm.ohholding.com.ua/api/file/add/
options:
login - login rest api
password - hash rest api
orderid - process id where to add the file
customfieldid - the key of the process's additional field
file - the file itself (there are many examples of how to transfer it on the Internet https://stackoverflow.com/questions/12667797/using-curl-to-upload-post-data-with... , or you can trite as an array with tmp_name elements (path to the file) / name (name) at least)
Unfortunately, I don’t know how this is configured in 1C, in order to tell you the tuning algorithm in a more accurate way.
11.02.2022, 15:57
Original comment available on version: ru

Is it possible to set up sending a file directly from 1C?
without using third party servers?
11.02.2022, 16:09
Original comment available on version: ru


Morozov Sergey Sergeevich Sergey Morozov wrote:
Is it possible to set up sending a file directly from 1C?


Tyndyk Maxim Vadimovich wrote:
Unfortunately, I don’t know how this is configured in 1C, in order to tell you the tuning algorithm in a more accurate way.

but I think there should be a possibility to send a request
11.02.2022, 17:24
Original comment available on version: ru

Good afternoon, the bill has been paid

Tyndyk Maxim Vadimovich wrote:
I organize
14.02.2022, 11:05
Original comment available on version: ru


Tyndyk Maxim Vadimovich wrote:
https://crm.ohholding.com.ua/api/file/add/
options:
login - login rest api
password - hash rest api
orderid - process id where to add the file
customfieldid - the key of the process's additional field
file - the file itself (there are many examples of how to transfer it on the Internet https://stackoverflow.com/questions/12667797/using-curl-to-upload-post-data-with... , or you can trite as an array with tmp_name elements (path to the file) / name (name) at least)
Unfortunately, I don’t know how this is configured in 1C, in order to tell you the tuning algorithm in a more accurate way.

Already implemented. Set up a request on the 1C side.
15.02.2022, 14:59
Original comment available on version: ru


Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment