Created
March 10, 2020 11:19
-
-
Save vspruyt-sol/d77a220230c21e4c9763a0dcf2257cbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyClass { | |
@AuraEnabled | |
public Milestone__c milestone { get; set; } | |
@AuraEnabled | |
public List<Deliverable__c> deliverables { get; set; } | |
public MyClass(){} | |
} | |
@AuraEnabled | |
public static void insertMilestoneWithDeliverables2(List<Map<String, Object>> milestones, List<Map<String, Object>> deliverables, List<MyClass> test) { | |
List<Map<String, Object>> milestonesWithDeliverables = new List<Map<String, Object>>(); | |
system.debug(test); | |
system.debug(test[0].milestone); | |
system.debug(test[0].deliverables); | |
} | |
//Javascript | |
let test = []; | |
this.milestones.forEach(milestone => { | |
let milestoneCopy = { ...milestone }; | |
milestoneCopy.deliverables = undefined; | |
test.push({ | |
milestone: milestoneCopy, | |
deliverables: milestone.deliverables | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment