Marking Checklist Items as Complete

Microsoft Dynamics AX 2012 uses Checklist to accomplish certain tasks. One such task is the Redeployment Checklist for the Retail Channels and the Initialization Checklist. The whole idea is that you cannot continue with a task until you have not completed the previous task.

But let’s say you do want to mark a task as completed without actually running the Class. In case you know what you are doing, and you are sure you can skip a step here is a short job demonstrating how you can mark the Synchronization of the database as completed:

static void pcoMarkCheckListAsComplete(Args _args)
{
    //Marking Compile as completed
    SysCheckList::finished(classnum(SysCheckListItem_Compile));
 
    //Marking Syncronize database as completed
    SysCheckList::finished(className2Id(classStr(SysCheckListItem_Synchronize)));
 
 
    info('done');
}

Hope you enjoyed my post and in case you have a question don’t hesitate to leave a comment!

Posted in dynamics.

Leave a Reply

Your email address will not be published. Required fields are marked *