You need to sign in to do that
Don't have an account?
Jag Singh
Button to bypass Lead Conversion when record in time based workflow
Hi,
Just been playing around with a little bit of code and i'm trying to allow my Leads to convert even though they have activated a time based workflow.
1. I followed this blog: http://cloudskc.wordpress.com/2012/06/14/lead-javascript-convert-button/
2. I've created my check box but i'm getting an error in line 1 and more specifically - “/soap/ajax/20.0/connection.js”)}var
{!REQUIRESCRIPT(“/soap/ajax/20.0/connection.js”)}var newRecords = [];var c = new sforce.SObject(“Lead”);
c.id =”{!Lead.Id}”;
c.Cancel_Time_Based_Workflow__c = “TRUE”;
newRecords.push(c);
result = sforce.connection.update(newRecords);
window.parent.location.href=”/lead/leadconvert.jsp?id={!Lead.Id}&RetURL=/{!Lead.Id}”;
Error Message: Syntax Error
Please let me know if someone has any solutions to this?
Thanks,
Jag
Just been playing around with a little bit of code and i'm trying to allow my Leads to convert even though they have activated a time based workflow.
1. I followed this blog: http://cloudskc.wordpress.com/2012/06/14/lead-javascript-convert-button/
2. I've created my check box but i'm getting an error in line 1 and more specifically - “/soap/ajax/20.0/connection.js”)}var
{!REQUIRESCRIPT(“/soap/ajax/20.0/connection.js”)}var newRecords = [];var c = new sforce.SObject(“Lead”);
c.id =”{!Lead.Id}”;
c.Cancel_Time_Based_Workflow__c = “TRUE”;
newRecords.push(c);
result = sforce.connection.update(newRecords);
window.parent.location.href=”/lead/leadconvert.jsp?id={!Lead.Id}&RetURL=/{!Lead.Id}”;
Error Message: Syntax Error
Please let me know if someone has any solutions to this?
Thanks,
Jag