You need to sign in to do that
Don't have an account?
Colin Loretz
Salesforce + Flex Output XML
I have used apex.query to query Salesforce and then I use a function to generate an XML object.
Does anyone know of a way to then output this xml (myDevNotes) to an XML file, such as "data/devNotes.xml" ?
Thanks,
Colin
Code:
[Bindable] private var myDevNotes:XML = <notes></notes>; private function loadDevNotes():void { //Apex Query code removed for brevity for (var j:int=0;j<qr.records.length;j++) { var newNote:XML = <note sfid= {qr.records[j].Id}> <name>{qr.records[j].Name}</name> <detail>{qr.records[j].QA_Detail__c}</detail> <createdBy>{qr.records[j].CreatedById}</createdBy> <lastModified>{qr.records[j].LastModifiedDate}</lastModified> </note>; myDevNotes = myDevNotes.appendChild(newNote); } }
Does anyone know of a way to then output this xml (myDevNotes) to an XML file, such as "data/devNotes.xml" ?
Thanks,
Colin
The AIR SDK has functions for writing to filesystem.
*this code is specific to Adobe AIR
Thank you for your help.