Skip to main content
3 events
when toggle format what by license comment
Sep 30, 2022 at 1:32 comment added sfdcfox @SoleHack I just went off your JSON. Your unit test logic doesn't match the doPost deserialization logic. You'll have to figure out which one is correct. Just use the method of constructing nested Map/List objects, as demonstrated here, rather than trying to write your own JSON strings.
Sep 30, 2022 at 0:50 comment added SoleHack Thanks for that. I updated and edited the test class but it looks like we are getting System.TypeException: Invalid conversion from runtime type Map<String,ANY> to List<ANY> on the post now. Did I associate it incorrectly? @sfdcfox
Sep 30, 2022 at 0:39 history answered sfdcfox CC BY-SA 4.0