Unexpected Token Illegal

If you face this issue, modify the code as below

alert(sforce.apex.execute("InfallibleTech.SubscribeOrUnsubscribeLead","unSubscribeLead",{"{!Lead.Id}"}));

For String and Id, quotes should be used.

Cheers!!!

No comments:

Post a Comment