Hi, I already submitted the workflow and create new workflow and want to recall all the submitted workflows is that possible if yes how can i do it ??
*This post is locked for comments
I have the same question (0)

Hi, I already submitted the workflow and create new workflow and want to recall all the submitted workflows is that possible if yes how can i do it ??
*This post is locked for comments
I have the same question (0)static void AKRMATProcessRecall(Args _args)
{
WorkflowTrackingStatusTable WorkflowTrackingStatusTable;
AKRMatRequest matRequest;
while select * from matRequest where matRequest.Stage == AKRMaterialRequestStage::Submitted
{
//info('Selected record %1 status is %2 '+ matRequest.ReqId , matRequest.Stage);
while select WorkflowTrackingStatusTable
where
WorkflowTrackingStatusTable.TrackingStatus == WorkflowTrackingStatus::Pending
&& WorkflowTrackingStatusTable.WorkflowType == WorkflowTrackingStatusWorkflowType::Workflow
&& WorkflowTrackingStatusTable.ContextTableId == tableNum(AKRMatRequest)
&& WorkflowTrackingStatusTable.ContextRecId ==matRequest.RecId
{
//consistency check valid data
// select firstOnly matRequest where matRequest.RecId == WorkflowTrackingStatusTable.ContextRecId;
if(WorkflowTrackingStatusTable.RecId)
{
//Workflow::recallWorkflow(WorkflowTrackingStatusTable.CorrelationId);
info('Recalled' + matRequest.ReqId);
// info('Correlation ID' + str2int64( WorkflowTrackingStatusTable.CorrelationId) );
}
}
}
}
Its Working fine Thank you !!!