Lookup workflow and get fulfillment group
Lookup workflow and get fulfillment group.
var searchText='8ad43bf82b473884fcb01abf59da15dd'; var tableData=''; var linkSetUp= gs.getProperty("glide.servlet.uri")+'wf_activity.do?sys_id='; var wfActivities = new GlideRecord('wf_activity'); wfActivities.addEncodedQuery('workflow_version.published=true^activity_definition=38891b6f0a0a0b1e00efdfdd77602027^'); wfActivities.query(); while(wfActivities.next()) { var cExist = new GlideRecord('sys_variable_value'); cExist.addEncodedQuery('document=wf_activity^document=wf_activity^variable=d7f2bd33c0a801650021da8ff242a081^value='+searchText+'^document_key='+wfActivities.getValue('sys_id')); cExist.query(); if(cExist.next()) { gs.log("<a href='"+linkSetUp+wfActivities.getValue('sys_id')+"'>"+wfActivities.getValue("name")+"</a>"); } }