You need to sign in to do that
Don't have an account?
James George 717
Unexpected token, simple code. please help
Hi All,
Please help me on this issue, what can be the reason.
public class OpportunityTriggerHandler extends TriggerHandler { private Map newOppMap; private Map OldOppMap; public OpportunityTriggerHandler() { this.newOppMap = (Map) Trigger.newMap; this. OldOppMap = (Map) Trigger.oldMap; } }
trying to save the code found on this link:
https://360coder.wordpress.com/2019/07/04/triggerhandler-salesforce/
Error screenshot
Greetings!
The code given in the link is the example which doesn't have the complete code.As per the documentation you need to create the Map to pass the Ids or string.Please find an example in the below link:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_map.htm
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri