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

Community Alums
Not applicable

HI @Joshua Chen FX ,

So sorry but your question seems imcomplete!! Please add more context along with some screenshots please.

 

Hi sandeep, there used to be a “approval for new request required” setting in sm_config . In Y release, it’s gone. See my link, then change to xanadu and ctrl + F “approval”. That’s the only ootb work order approval flow in FSM, someone who knows FSM will know. Hope this helps

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.

@Kieran Anson  thank you!! may I ask where did you read about this/found out it was deprecated or the recommendation?