Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46681

Setting batch status via X++

$
0
0

Hello:

I'm setting up a batch job through X++ code but I would like to create the batch job in a 'withhold' state initially. Below is a snippet of the code I'm using. 

...

batInfo = rbbTask.batchInfo();
batInfo.parmCaption(sParmCaption);
batInfo.parmGroupId("");
batHeader = BatchHeader::construct();
batHeader.addUserAlerts(curUserId(),NoYes::Yes,NoYes::Yes,NoYes::Yes,NoYes::Yes,NoYes::Yes);
batHeader.addTask(rbbTask);
batHeader.save();

...

Thank you!


Viewing all articles
Browse latest Browse all 46681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>