SBX - Search With Button

SBX - Forum Post Title

Release AP Bathces

Microsoft Dynamics SL Forum

Mohamed Ibrahim asked a question on 12 Jul 2018 5:24 AM
My Badges

Question Status

Verified

How to release a certain set of batches from Release AP Batches in Automatic manner without using the Dynamics SL. 

Is Any default .NET Code will support this , like call 0341000.exe file .

Kindly advise.

Reply
NameBrands responded on 12 Jul 2018 9:15 AM
My Badges

You could probably use SendKeys, but I wouldn't recommend it.

msdn.microsoft.com/.../system.windows.forms.sendkeys%28v=vs.110%29.aspx;MSPPError=-2147217396

Reply
Erich Strelow responded on 12 Jul 2018 2:45 PM
My Badges
Verified Answer

If the batche's data is already setup, I'd go with a Transaction Import approach.

First, setup an import control file named release.ctl such as this:

Batch,cbatnbrb,cbatchandling


Then, each time you need to release a set, generate a data file such as:

Batch,000101,R
Batch,000102,R
Batch,000103,R


For the sample, we'll name the data file set100.txt

With that, the following call will open each of the batches and release them. With this approach, you must be logged to whichever company the batches belong, though

0301000.exe TITM=3 TD=set100.txt TC=release.ctl TO=release.log

There's some other options that may come handy. Further automation can be achieved with the Application Server.
 

Reply
Mohamed Ibrahim responded on 17 Jul 2018 5:03 AM
My Badges

Thanks for your advice.Your help is very much appreciated.

Reply
Erich Strelow responded on 12 Jul 2018 2:45 PM
My Badges
Verified Answer

If the batche's data is already setup, I'd go with a Transaction Import approach.

First, setup an import control file named release.ctl such as this:

Batch,cbatnbrb,cbatchandling


Then, each time you need to release a set, generate a data file such as:

Batch,000101,R
Batch,000102,R
Batch,000103,R


For the sample, we'll name the data file set100.txt

With that, the following call will open each of the batches and release them. With this approach, you must be logged to whichever company the batches belong, though

0301000.exe TITM=3 TD=set100.txt TC=release.ctl TO=release.log

There's some other options that may come handy. Further automation can be achieved with the Application Server.
 

Reply

SBX - Two Col Forum

SBX - Migrated JS