function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
purpurnellpurpurnell 

How do I send an old Set of values and a new Set of values via a deserialized JSON body?

How do I send an old Set of values and a new Set of values via a deserialized JSON body?

I have an array of  accountRoles and I need  to send them to an external database.
MichelCRMichelCR
Hi Nayonna,

You could define a wrapper class with two properties oldSet and newSet and then get the JSON from that wrapper class.
 
class WrapperJSON{
    List<accountRoles > oldSet {get; set;}
    List<accountRoles > newSet {get; set;}
}
I hope this helps