B
B
boris tyrepharm2018-01-06 14:22:01
1C-Bitrix
boris tyrepharm, 2018-01-06 14:22:01

How to set a fixed value in your algorithm when synchronizing 1C:UT and Bitrix through the Bitrix exchange module?

I have a website on 1C-Bitrix and 1C:UT 11.3, I set up the exchange of orders through the Bitrix exchange module.
In the exchange module, I set up the correspondence of the details ("Document Exchange" -> "Set up the details of documents uploaded to 1C"). Here, in the "Data type" field, there is the "Fixed value" option, where the attribute value is selected from the list in accordance with the values ​​​​already set in 1C.
How to reproduce the "Fixed Value" functionality when choosing the "Custom Algorithm" Data Type?
[Результат] = "Своё_Значение";- this method does not work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
brokendevice, 2020-04-30
@brokendevice

Good afternoon. I also struggled with this issue, but I figured it out, suddenly it will help someone.
Based on the comment to the order, I needed to fill in the Organization requisite and some other parameters in the "Customer's Order" document:

НаименованиеОрг = [Документ].Комментарий;
[Результат] = Справочники.Организации.НайтиПоНаименованию(НаименованиеОрг);

*This is just an example.
** It is necessary not to forget about the order in which the details of the document are filled in, that is, in my case, the comment "From the XML document" was filled in first, and only then the organization was filled in.
Just in case, I'll leave here another example of working with the "base". Filling in the requisite "Organization" in the payment document "Acquiring operation".
ЗаказОснование = Документы.ЗаказКлиента.ПустаяСсылка();
ЗаказОснование = ПолучитьОснование([ДокументXML], Тип("ДокументСсылка.ЗаказКлиента"));
[Результат] = ЗаказОснование.Организация;

S
strannikdj, 2020-06-27
@strannikdj

Can you tell me if it is possible to fill in the default ("Retail warehouses") value of the "Warehouse" attribute if it does not come in XML?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question