D
D
DmitryName2016-03-03 12:30:10
1C-Enterprise
DmitryName, 2016-03-03 12:30:10

How to get the id of an element correctly in 1C during data upload?

I am uploading data to an XML file, the string
WriteXML.WriteAttribute("Organization", String(Selection.Organization));
returns me the text that lies in the field, and not the id of the element to which the field refers. I don’t know the 1C language at all and I found this code on Google, and it suits me completely, with the exception of such a small annoyance, I’m sure that you need to parry quite a bit there to make it great! Please tell me how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kinash, 2016-03-03
@DmitryName

Try this:
WriteXML.WriteAttribute("Organization", String(Selection.Organization.Code));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question