work order task signature not captured anywhere in system

rajeshjain
Tera Expert

HI, 

We are working on FSM and getting customer sign each work workorder task after completion on agent mobile device , but unfortunately it doesn;t seems attaching with WO or WOT , not even in signature_image table. Please advise where can we find the signature.

1 ACCEPTED SOLUTION

rajeshjain
Tera Expert

I couldn't find any solution , so finally below steps were done.

1) mobile builder - Create function instance and a function Sign and Confirm button same as work order , Application - Field service mobile

2) Application Global - Buininess rule - Signature Capture WO PDF Generation updated to capture details for wm_task table

else if (tableName == 'wm_task') // Else if added ,it will be executed on sign on work order task form
{
var sm1 = new sn_sm.SMConfiguration();
if (sm1.isEnabled('field_service', 'pdf_order_summary', false))
{


gs.info("Signature capture PDf Generation BR elseif wm_task -tablename ,woSysId , SignedName as " + tableName +","+ woSysId +","+ signedName );

new GeneralWO_WOT_Form(tableName, woSysId, signedName).generate(); // New function created for Work order task
}
}

 

3) Script include changes - ADDITION OF BELOW FUNCTION

// Created below function when SysID of task apperas in targetID
_getWOTaskGrtWOT : function() {
var gr = new GlideRecord("wm_task");
gr.addQuery('sys_id', this.targetId);
gr.query();
return gr;
},

 

--------

MAKE CHANGE IN parsedBody , grwo to gr

 

Hope this helps.

 

View solution in original post

3 REPLIES 3

rajeshjain
Tera Expert

I couldn't find any solution , so finally below steps were done.

1) mobile builder - Create function instance and a function Sign and Confirm button same as work order , Application - Field service mobile

2) Application Global - Buininess rule - Signature Capture WO PDF Generation updated to capture details for wm_task table

else if (tableName == 'wm_task') // Else if added ,it will be executed on sign on work order task form
{
var sm1 = new sn_sm.SMConfiguration();
if (sm1.isEnabled('field_service', 'pdf_order_summary', false))
{


gs.info("Signature capture PDf Generation BR elseif wm_task -tablename ,woSysId , SignedName as " + tableName +","+ woSysId +","+ signedName );

new GeneralWO_WOT_Form(tableName, woSysId, signedName).generate(); // New function created for Work order task
}
}

 

3) Script include changes - ADDITION OF BELOW FUNCTION

// Created below function when SysID of task apperas in targetID
_getWOTaskGrtWOT : function() {
var gr = new GlideRecord("wm_task");
gr.addQuery('sys_id', this.targetId);
gr.query();
return gr;
},

 

--------

MAKE CHANGE IN parsedBody , grwo to gr

 

Hope this helps.

 

Did you create the new Script Include (GeneralWO_WOT_Form)? Could you please provide a brief explanation of the solution? I’m having trouble creating it even after following the steps above.

Joshua Chen FX
Mega Sage

you need to go to sm_config to enable signature.