web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Batch parameters

(0) ShareShare
ReportReport
Posted on by

Good morning,

I was curious where batch job parameter values are kept in the AX system. I assume they're in the table structure somewhere. For instance, if I were to schedule the Open sales by line report as a batch, where does AX hold the Print destination parameter for the report output? I'm looking for a way to modify the value through code. 

Thank you in advance. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Batch parameters

    They are stored as a container in the Parameters field of the Batch table.

  • Community Member Profile Picture
    on at
    RE: Batch parameters

    Hi Jens,

    I looped through the parameter container and didn't see anything that corresponds to the value I was looking for. However, there is a value ...

    {218A05F4-2721-474C-9F17-872A1AFE3AD0}

    I'm not sure how to decipher what data this actually holds.

    Would you be able to offer some assistance?

    Thanks very much. 

  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Batch parameters

    It's the right place - if you don't see there what you expect, you have wrong expectations.

    The value is a GUID.

    If you need more information from us, please explain your particular problem.

  • Community Member Profile Picture
    on at
    RE: Batch parameters

    I wont look it up right now, but if I remember correctly the printer settings are also stored in a container. So you probably have to look for a container in the parameters container.

  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Batch parameters

    Ah, this is about printer settings...

    Forget about implementation details such as how the values are serialized, you don't need and even shouldn't change it directly - there are already classed that will do these things for you.

    Please tell us more about the business requirement, e.g. when you want to change printer settings.

  • Community Member Profile Picture
    on at
    RE: Batch parameters

    Hi Martin,

    We have a number of batch jobs which output files to shared storage. I need to point their destination to a new storage location but rather than manually changing them I was looking for a programmatic way to accomplish it. Hope that helps.

  • Verified answer
    Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Batch parameters

    For example:

    SRSPrintDestinationSettings settings;
    settings = controller.parmReportContract().parmPrintSettings();
    settings.printMediumType(SRSPrintMediumType::File);
    settings.fileFormat(SRSReportFileFormat::Excel);
    settings.fileName(@'\\share\report.xlsx');

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans