• Daniel Blackhall
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi all,

 

I am working on a solution where I would like to be able to take a custom object populate it then serialize it to XML to store somewhere - in a field in another object to be exact.

 

This I usually do in .NET using XML serialization and it works great. I then can at any time deserialize it obviously for later use. Almost like a freeze and defreeze mechanism.

 

What I really want to do is create another object that will have a text area field where the xml of the serialized object will go and I can retrieve this at any time out of this object to "defreeze" the child object and deserialize it back into memory.

 

In .NET this is really easy to do. But in APEX is this possible at all? The ideal will be I will create a trigger on object x and then that trigger will then run an apex class that runs some code that does the serialization. And as u can set "before" and "after" events in triggers then I will be able to maintain the two states on an object right???

 

Well that's how I vision it as an experienced .NET programmer new to Apex programming.

 

Any pointers guys? Or if it is even possible?

 

Regards,

 

Shion.

  • March 05, 2009
  • Like
  • 0