I have a custom button that's supposed to update a field on the Account Object. I made this work via Javascript process, but the problem is this Custom button won't show up under custom links in Account object when in Lighting, it only shows up if I am using Classic.
On the warning it says Java script behavior isn't supported in lighting, what else can I do to update a field on the Account object?
Here is the code I have thas currently working but it's Javascript.
{!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")}
var accnt = new sforce.SObject("Account");
accnt.Id = '{!Account.Id}';
accnt.wow= 'True';
var result = sforce.connection.update([accnt]);
if(result[0].getBoolean("success"))
{
alert('Running process...');
window.location.reaload();
}
else
{
alert('Error : '+result);
}
How can I archive this without using the Java Script