2

I'm looking to upload multiple (100+) files at once and then manipulate them sequentially (or even concurrently if there are no dependencies) using x++. I understand that there is the File::GetFileFromUser(), but I cannot select multiple files using this method, I can only do one file at a time, which for hundreds of files is not considered an acceptable solution by the customer.

Is there a way to select multiple files at the same time so that the upload can do many files at once? Or is it possible to select a folder and have it upload the contents of a folder to temporary storage?

SysC0mp
  • 90
  • 1
  • 14
rjv
  • 1,058
  • 11
  • 29

3 Answers3

2

You could upload your 100+ files as a single archive and before processing files in X++, you would simply unpack the archive. Otherwise you can log a feature request (ideally on ideas.dynamics.com).

Martin Dráb
  • 259
  • 1
  • 7
  • 1
    Surprisingly simple yet elegant! – Alex Kwitny Jun 21 '17 at 15:20
  • While this would probably work, I'm going to continue looking more into an extensible control because while it might satisfy the immediate requirement, it doesn't really solve the overarching technical limitation. It's definitely a solution though. – rjv Jun 21 '17 at 18:37
1

There does not appear to be an easy way to do what you want, but D365 is still new and I don't know everything. I did want to provide you with some good resources that you may be able to figure it out from.

And I believe the javascript that launches with the browse button is located in webroot\Scripts\Controls\Documents.js.

I spent maybe an hour trying to figure this out, and I already found a bug and submitted it to connect https://connect.microsoft.com/site1321/feedback/details/3136255 .

If you end up figuring it out, I'd be happy to hear your solution.

Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
-1

Dynamics AX 2012 supports multi-threading in batch jobs. I have not seen anything that shows 365 for operations does not.

http://www.artofcreation.be/2010/10/03/batch-multithreading/

Import a file with the file name of your 100+ files, then launch a new thread to load each file in parallel.

asb
  • 1
  • 1
  • Unfortunately AX 365 and AX 2012 are too architecturally different to be compared in this case, especially as one resides in the cloud and the other resides locally (with a thick client) – rjv Jul 24 '17 at 17:02