You need to sign in to do that
Don't have an account?
Praetorian65
Code to create objects from XML
I have a custom object called License. I also have an external asp page that will dynamically generate some XML with most of the data needed to create a new License object (one field I have to work out from the others, but nothing too hard). I need to write some code that can import the data say once a day but I have no idea how to go about doing this. None of the documentation I've read hints at anything like this. I don't know where to start.
Honestly I'm not crazy about having a bunch of Apex code doing daily reads and XML decodes -- if I had the ability, I'd be using your external code to construct a SF Web Service API call to do the insert(s) directly. I just find it easier to write a lot of appropriate error handling / retry logic / logging / etc. in an external place.
Hope this helps.
Jeremy Kraybill
Austin, TX
Message Edited by JeremyKraybill on 12-19-2008 07:06 AM