New answers tagged


You can pass the type also as a parameter and then deserialize it based on that. Also pass a string using JSON.stringify in the strJSONdata from UI. Something like this: @AuraEnabled public static void dmlOperationOnSObjectRecords(String strJSONData, String strType, Boolean boolIsList) { List<SObject> lstObjects = new List<SObject>(); if (...

Top 50 recent answers are included