SM config: approval required missing in yokohoma

Joshua Chen FX
Mega Sage

hi team, where can i turn on approval for WO ? in SM config (sm_config) it's not there anymore, and it's been removed from the documentation in Y.Global domain configurations

 

edit: also noticed the states flows for approval is gone.

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi Joshua,

Approvals via sm_config were deprecated in Y with the transition away from legacy workflows. The field/checkbox is still available on the sm_config table (not the $sm_config UI page) as 'approval'.

 

The approval mechanic from the sm_order workflow 'Approval Workflow for SM' ran when the state was set to Draft (1). This would trigger the workflow and check whether approval was enabled via the following script

var sc = new global.SMConfigurationHelper();
var config = sc.getConfigurationByOrderRecord(current);
answer = sc.isEnabled(config, 'approval', false) ? 'yes' : 'no';

 

The recommendation now is to create a Flow that runs on insert and requests approval.

View solution in original post

5 REPLIES 5