You need to sign in to do that
Don't have an account?
Steve Harrison
Need on-click javascript
We have a custom button that generates an invoice record from an order. I would like to automatically update the order Status field to "Invoice Sent" when that button is pressed. Below is the current script for the button. Can someone provide additional javascript to add this update?
Thanks!
Steve
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
var id = sforce.apex.execute("AdaptiveUtilities", "invoiceFromOrder",
{orderId: '{!Order.OrderNumber}'});
window.location = "/" + id;
Thanks!
Steve
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
var id = sforce.apex.execute("AdaptiveUtilities", "invoiceFromOrder",
{orderId: '{!Order.OrderNumber}'});
window.location = "/" + id;
All Answers