Home > Forum > Rules, JS, SQL > populating item list from the xml file

populating item list from the xml file
0

Hi, is it possible to do it via javascript is the main question. i know that this could be done via sdk(c#) and there is already an example guide of it on the forum, but i was wondering would it be possible to create a parser in javascript, that can be loaded maybe by the hotfolders option ?

MVP

Hi Arthuzad,
Assuming that the file is attached, then you could try to parse that XML using SQL, you can see an example here: https://blog.lumenn.pl/reading-xml-attachments/.
When talking about javascript, you could create a business rule that will get the content of the attachment through sql, and then pass that business rule into a form rule to parse it.

Both of those assume that XML is attached on the form.

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings