Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Import Configuration Package on Install

Posted on by 5

Hi,

I've created an app which needs some default setup data.
After installation I can manually import a configuration package but what I would like is to automatically import the configuration package on installation if the setup table is still empty.

I created a Codeunit of the subtype 'install' and added trigger OnInstallAppPerCompany() and I also added the rapidstart file in a subfolder in the app but I don't know how to handle the import from here.

I could not find an example on how to do this in blogs or documentation.

image

Categories:
  • Tom Taffin Profile Picture
    Tom Taffin 10 on at
    RE: Import Configuration Package on Install

    Hi Frederik,

    I was wondering if you managed to get this done and if so, how exactly :-).

    Thx!

    Tom

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,152 on at
    RE: Import Configuration Package on Install

    You can also create a wizard on your extension setup page and from here loading a configuration package as described here:

    [View:https://demiliani.com/2018/08/22/dynamics-365-business-central-loading-configuration-packages-from-al/]

  • Suggested answer
    Claus Macali.dk Profile Picture
    Claus Macali.dk 997 on at
    RE: Import Configuration Package on Install

    docs.microsoft.com/.../itpro-introduction-to-automation-apis

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans