Answer the question
In order to leave comments, you need to log in
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
Try this:
WriteXML.WriteAttribute("Organization", String(Selection.Organization.Code));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question