Revise Agreement not Copy Primary Account and Account Id Field Value
var PriAccount;
Step 2. Add the following:
function BusComp_PreInvokeMethod (MethodName)
{
if (MethodName =="Revise")
{
PriAccount = this.GetFieldValue("Account Id");
}
return (ContinueOperation);
}
function BusComp_InvokeMethod (MethodName)
{
if (MethodName =="Revise")
{
this.SetFieldValue("Account Id", PriAccount);
this.WriteRecord();
PriAccount = "";
}
}
Now compile the object and restart the services for the changes to take effect.