Context: I am looking to implement a daily automated import of a product catalog. I can only access the catalog via an API endpoint that cannot be filtered/paginated and gives ±100K rows of XML as response. Given the size of the XML and the lack of native XML handling in SSJS I'm suspecting using Eliot Harper's solution is going to cause timeouts in my SSJS activity. I've previously worked with a data extract "convert XML" activity that worked great with large volumes. In this case, the XML structure is also really simple, max 2 levels deep. So my idea is, do the API call to the product feed with an SSJS activity and store the output as a file on the sFTP. Then use data extract to convert the XML to csv and then use an import to import to a DE.
My question now is, how can I place the XML output I get via the API as a file on the FTP? I found some code snippets that imply it's possible using new FileTransfer()
but I can't find any documentation on this Class at all. Any help is greatly appreciated!