Workflow button from saved search result
I know it is possible to inject URLs into saved search results, via a formula, so I can create a link to the record from the saved search result.
I have a workflow button being created on transactions (PO Approval) and I was wondering if I can add a saved search result link to hit that workflow ‘Approve’ button.
Is this doable?
You are able to trigger a workflow from script. You could create a suitelet that executes a workflow for the record by specifying that as a parameter in the request url
var workflowInstanceId = workflow.trigger({
recordType: record.Type.XXX,
recordId: XXXX,
workflowId: ‘XXXX’,
actionId: ‘workflowactionXXX’,
stateId: ‘workflowstateXX’
});