Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {!REQUIRESCRIPT("/soap/ajax/23.0/connection.js")}
- sforce.connection.sessionId = "{!$Api.Session_ID}";
- var l = new sforce.SObject("Lead");
- l.id = "{!Lead.Id}";
- var result = sforce.connection.update([l]);
- if (result[0].getBoolean("success"))
- {
- // Refresh window
- window.location = "/lead/leadmergewizard.jsp?retURL=%2F{!Lead.Id}&id={!Lead.Id}&p1=0&p2=0&p3=1&p4=1&p5=0&p6=1";
- }
- else
- {
- alert("Error saving lead. Please check for validation rules that may be preventing you from saving the record — e.g., missing Total Power Units");
- }
Add Comment
Please, Sign In to add comment