04-05-2018 2:28 AM - edited 02-04-2024 3:46 AM
Hi,
Is it possible to get SAP Business One object from XML string without saving xml file on hard disk using DI-API?
I found method oCompany.GetBusinessObjectFromXML(someXMLFile,0) and it works good if you have xml files on your hard drive. However, I am interested in solution without saving files on hard drive. For example, I have C# string with XML A/R Invoice inside and I would like to get B1 A/R Invoice object from that XML.
SAP Business One 9.x, SQL version
Thanks,
Sergei
Hi,
Yes, set your Company property XMLAsString to true before reading the XML
oCompany.XMLAsString = true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works. Thank you very much 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.