I have a button on the entity salesorder that calls a workflow that calls a custom workflow activity that adds a product to salesorderdetail.
I also have a second button that calls a JavaScript function that refreshes the salesorderdetail sub grid.
As everything is functioning, I would to streamline the process and have one button that does every.
e.g. the button would add a product to the salesorderdetails and then refresh the salesorderdetails.
What would be the best way to combine buttons in this scenario?