Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

How To Upload a File in Business Central without using an action

Posted on by 479

I just need to upload an image to Business Central directly from an image I have in my AL Project (code base). Most tutorials I've seen create an action for doing this, but I just want it to upload as soon as I deploy to my sandbox.

Pls help,

J

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,760 Super User 2024 Season 2 on at
    RE: How To Upload a File in Business Central without using an action

    Hi, This is because, the SaaS version cannot read local files and requires some operations on the UI.

    Of course, there are many options for automatic.

    Like the example below (Upload an image from URL), you can use Install codeunit to make it automatic with a slight modification.

    https://yzhums.com/17574/

    More details: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-extension-install-code

    Hope this helps.

    Thanks.

    ZHU

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans