Skip to main content

Locate trigger action from workflow

ui action

table:
wf_executing

name:
"Locate Matching sys_trigger entry"

//--server side option:
var url='/sys_trigger_list.do?sysparm_query=nameLIKE' + current.sys_id + '&sysparm_list_mode=grid';
action.setRedirectURL ( url ) ;


> go to it and update the date to a few seconds from now

-------------

how to enable the worklflow context ui action on the ticket:
> do an insert and stay on the workflow context ui action, adding in the table it should display on (for example, hr case)

script can be modified to:

var url= '/wf_context_list.do?sysparm_query=id%3D'+ current.sys_id;
action.setRedirectURL(url);


clicking this should take you to the wf_executing entries (under the related tab), click into the wait block entry and you should see the new
Ui action

Comments

Popular posts from this blog

Get URL Parameter - server side script (portal or classic UI)

Classic UI : var sURL_editparam = gs . action . getGlideURI (). getMap (). get ( ' sysparm_aparameter ' ); if ( sURL_editparam == 'true' ) { gs . addInfoMessage ( 'parameter passed ); } Portal : var sURL_editparam = $sp . getParameter ( " sysparm_aparameter " ); if ( sURL_editparam == 'true' ) { gs . addInfoMessage ( 'parameter passed ); }

URL link in addInfoMessage

var ga=new GlideAjax('gld_HR_ajax'); ga.addParam('sysparm_name', 'checkEmployeeNumber_hrProfile'); ga.addParam('sysparm_hrprofilenumber', g_form.getValue('number')); ga.addParam('sysparm_employeenumber', newValue); ga.getXMLAnswer(function(answer) { if (answer!='undefined' && answer!=''){ var navURL="<a style='text-decoration:underline;color:blue' href=hr_profile.do?sysparm_query=number=" + answer + ">" + answer + "</a><img width='3' src='images/s.gif'/>"; var sMsg='The employee number entered already exists on another HR Profile ' + navURL; //alert(sMsg); g_form.showErrorBox('employee_number', 'error - please check'); g_form.addInfoMessage(sMsg); } });