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!!!
alert(sforce.apex.execute(“InfallibleTech.SubscribeOrUnsubscribeLead”,”unSubscribeLead”,{“{!Lead.Id}”}));
For String and Id, quotes should be used.
Cheers!!!