Hi all ,
Either we can manually create the record in Batch Job Master in System Administration Module or we can create the same directly using x++.
Please view the code below written in a Runnable Class :-
public static void main(Args _args)
{
BatchHeader batHeader;
BatchInfo batInfo;
RunBaseBatch rbbTask;
str sParmCaption = "Free Text Invoice Creation Batch Job";
rbbTask = new FreeTextInvoiceCreationBatchJob();
batInfo = rbbTask .batchInfo();
batInfo.parmCaption(sParmCaption);
batInfo.parmGroupId("");
batHeader = BatchHeader::construct();
batHeader.addTask(rbbTask);
batHeader.save();
info(strFmt("%1 batch has been scheduled.", sParmCaption));
}
Happy Coding !!!
Either we can manually create the record in Batch Job Master in System Administration Module or we can create the same directly using x++.
Please view the code below written in a Runnable Class :-
public static void main(Args _args)
{
BatchHeader batHeader;
BatchInfo batInfo;
RunBaseBatch rbbTask;
str sParmCaption = "Free Text Invoice Creation Batch Job";
rbbTask = new FreeTextInvoiceCreationBatchJob();
batInfo = rbbTask .batchInfo();
batInfo.parmCaption(sParmCaption);
batInfo.parmGroupId("");
batHeader = BatchHeader::construct();
batHeader.addTask(rbbTask);
batHeader.save();
info(strFmt("%1 batch has been scheduled.", sParmCaption));
}
Happy Coding !!!
Excellent post, thanks for this. I gathered lots of information from this and I am happy about it. Do share more updates.
ReplyDeleteMicrosoft Dynamics crm Training in Chennai
Microsoft Dynamics Training
Microsoft crm Training
Hacking course in Chennai
Tally course in Chennai
PHP Training in Chennai
Web Designing Training in Chennai
ccna course in Chennai
Ethical Hacking course in Chennai
PHP Training in Chennai
Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it. visit blog
ReplyDeleteSolo this class is somewhat precarious to use as your principle abilities are creating enormous danger to get the adversary to assault you. Best Assignment Help Online
ReplyDelete전국의 마사지샵(구인 업체)과 마사지 구직자(관리사)를 연결하는 전문 플랫폼의 등장으로, 이제 마사지구인 정보를 찾거나 인재를 모집하는 과정이 한층 수월해졌습니다 마사지구인
ReplyDelete