system.groups.loadFromFile file questions

I'm trying to dynamically load my transaction groups, but I don't want to load them from a file. I have a text string that's the guts of an xml I want to load.

When i try to run the system.groups.loadFromFile it throws an error that its not a valid file, which its not. I tried reading it as bytes, saving it as a file (without writing it to disk.), etc...

Has anyone else successfully implemented this or have any pointers on how to use the text as a file for the function? thanks

Write it to a temporary file and then give the function the file path like it expects.

thanks, I'll do that

one more question, does it have to be a file path or can I use the fileUpload in perspective to import the xml file? I'm having some issues with that too. Thanks!

The function expects a file path.

1 Like

will do!