Skip to content

Instantly share code, notes, and snippets.

@mokamoto
Created December 17, 2013 22:11
Show Gist options
  • Save mokamoto/8013493 to your computer and use it in GitHub Desktop.
Save mokamoto/8013493 to your computer and use it in GitHub Desktop.
{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")}
var result = sforce.apex.execute("InvoiceUtilities","renumberLineItems",{invoiceName:"{!
Invoice__c.Name}"});
alert(result);
window.location.reload();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment