Get a collection of all Job Arguments

I use Arguments extensively, in fact I use them instead of config files. Much simpler.

I need a way to get a collection of all the arguments and their values so that I can easily loop through and output them to a log file for tracking purposes. A dictionary would be preferable.

Essentially I’d like to be able to…

myArguments = getArgumentsDictionary()
for each arg in myArguments
writeln arg.name + ": " + arg.value

Hey @postwick,

You want arguments for all the jobs or what is your expectation.

Could you please be more clear

Thanks :slight_smile:

The Arguments and their values. I would like a collection of all Arguments to be available so that I can use it in my code.

1 Like

I’ll save your feedback for future consideration by our team :slight_smile:

In the meantime, I’d like to point you to the Data Service entities, one of our products. With that you can create a table with all your inputs, load it up to your process and use it however you want.

Bonus here is that you can fetch all records and log it however you want.

1 Like

Buying another product to take the place of a simple feature like parameters isn’t really going to fly, but thanks for the suggestion.

2 Likes

By the way, how do you handle multiple arguments of a process?

I decided to use a single asset that stores a json string. Assets can take up to 1 mln chars.

By creating multiple arguments in the project.

But we got away from process arguments and use config files now. And I built a custom activity “Read Config” that simplifies everything. Then we just have an Asset that stores a path to the config file. This is much simpler than dealing with a huge JSON string.

2 Likes