Unified Operations & Dynamics AX Forum

Expand all | Collapse all

Upload multiple files in sigle load through code in Dynamics 365 for Operations

  • 1.  Upload multiple files in sigle load through code in Dynamics 365 for Operations

    Posted 29 days ago
    I'm trying to upload a folder full of files e.g. images through code in Dynamics 365 for Operations
    Standard class only allows to upload a single file by execution.

    Do somebody know how to do that?

    ------------------------------
    Alfredo G
    ------------------------------


  • 2.  RE: Upload multiple files in sigle load through code in Dynamics 365 for Operations

    GOLD CONTRIBUTOR
    Posted 29 days ago
    Alfredo,

    As far as I know, there's no 'batch upload' but you could just loop through each file in the directory and upload them one by one in code. To your end user they won't know the difference.

    ------------------------------
    Alex Meyer
    Director of Dynamics AX/365 for Finance & Operations Development
    Fastpath
    Des Moines, IA
    ------------------------------



  • 3.  RE: Upload multiple files in sigle load through code in Dynamics 365 for Operations

    Posted 28 days ago
    Hi Alex,

    Thank you for your reply.
    I'm working in D365, I don't know how to loop though files, because the dialog only allows me to select a file.
    I can't work with directories. :/

    ------------------------------
    Alfredo G
    ------------------------------



  • 4.  RE: Upload multiple files in sigle load through code in Dynamics 365 for Operations

    SILVER CONTRIBUTOR
    Posted 28 days ago
    Alfredo,
           I've only done individual file uploads with D365FO to date.  I did a quick search around, there is a tool called Recurring Integrations Scheduler, that at a glance could solve your problem.  I've not looked at it in any great detail, but initial signs seems to suggest that may be helpful.

    Regards,
    Andrew

    ------------------------------
    Andrew Friebel
    Gale Pacific Limited
    ------------------------------



  • 5.  RE: Upload multiple files in sigle load through code in Dynamics 365 for Operations

    Posted 28 days ago
    Thanks Andrew,

    Let me dive into this tool. I'll update the post with my results.

    ------------------------------
    Alfredo G
    ------------------------------



  • 6.  RE: Upload multiple files in sigle load through code in Dynamics 365 for Operations

    GOLD CONTRIBUTOR
    Posted 27 days ago
    Alfredo,

    I was able to find this discussion on StackOverflow that seems to be asking the same question and it has some nice resources with it:

    https://stackoverflow.com/questions/44640672/dynamics-365-for-operations-upload-multiple-files-at-once

    ------------------------------
    Alex Meyer
    Director of Dynamics AX/365 for Finance & Operations Development
    Fastpath
    Des Moines, IA
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role