Below is some sample JavaScript you can use:
function AddRowToGrid(gridName) {
var grid = nsServiceRequest.extjsGridList[gridName];
var store = grid.getStore();
grid.stopEditing();
var newRow = store.getCount();
var currentReco...
Sorry, I don't have an example readily available, but you should look at the getAuthorizations API to get the TaskID (documented in the Integration Guide).
You can use the following NSAPI (REST) call:RequestCenter/nsapi/transaction/tasks/{task-id}/approveNote that it does not use the requisition id; it uses the requisition ENTRY ID (task ID)