Options

Dynamics NAV Data Import/Export from/to Excel

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,496
edited 2015-05-22 in Download section
Dynamics NAV Data Import/Export from/to Excel
Simple (Dynamics NAV) data Import/Export from/to Excel.

Export:
- Select a Table No.
- Select a File Name
- Select the fields to export.
- Press Export

Import:
- Select a Table No.
- Select a File Name
- Select the fields to import.
- Define the right column names.
- Press Import

Simple and Quickly importing and exporting data!

IMPORTANT: Be carefull with importing data into a Live Database!

http://www.mibuso.com/dlinfo.asp?FileID=984

Discuss this download here.

Comments

  • Options
    SavatageSavatage Member Posts: 7,142
    So you would need 4 forms, 2 tables & 1 codeunit is that correct?
  • Options
    bvbeekbvbeek Member Posts: 32
    Savatage wrote:
    So you would need 4 forms, 2 tables & 1 codeunit is that correct?

    Hi Savatage,

    You need 2 Table, 5 Forms and 1 codeunit.

    Good Luck!
    Yours,
    Bart van Beek
    Boltrics Professionals B.V. | www.boltrics.nl
    Nekovri Dynamics | 3PL Dynamics
  • Options
    SteveSteve Member Posts: 81
    Very nice contribution.. =D>

    I was looking for this exact excel exporter, but gorgot the client I'
    m working with refuses to upgrade from 2.X version. Any chance of anything like this working in a 2.X version since recrodref and fieldref didn't exist?

    Thanks
    Steve
  • Options
    ajhvdbajhvdb Member Posts: 672
  • Options
    rdebathrdebath Member Posts: 383
    Steve wrote:
    Very nice contribution.. =D>

    I was looking for this exact excel exporter, but gorgot the client I'
    m working with refuses to upgrade from 2.X version. Any chance of anything like this working in a 2.X version since recrodref and fieldref didn't exist?

    Thanks

    There is a work around, but it's evil.
    You go through the Field table and generate a codeunit to emulate the required recref and fieldref features.
    The codeunit will be huge but it can work.

    The old Commerce Portal synchronization code is written just like this. (6200..6299)

    (Oh and unlike recrefs this can work with BLOBs)
  • Options
    SogSog Member Posts: 1,023
    Thank you for this import/export handler.
    Now I can start on a modification to automate my imports.

    Note for use
    If you import a book, the sheetname must be the same as the "Export / Import Excel Header".Code
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • Options
    mazzalimmazzalim Member Posts: 0
    Hi,
    I have a problem importing default dimension.
    How can specify the field Dimension Code?

    Thanks
  • Options
    bvbeekbvbeek Member Posts: 32
    mazzalim wrote:
    Hi,
    I have a problem importing default dimension.
    How can specify the field Dimension Code?

    Thanks

    Global Dimension Code 1
    Global Dimension Code 2

    ?
    Yours,
    Bart van Beek
    Boltrics Professionals B.V. | www.boltrics.nl
    Nekovri Dynamics | 3PL Dynamics
  • Options
    pfrancpfranc Member Posts: 0
    Good afternoon,
    thank you very much for this excellent useful tool.
    If I could make a note, some glitches surfaced during my tests. When the "Add entries" import option is selected, only one record is imported - the one which matches the number of row filled in the "First DataRow" field. And when importing to a void table, there is a duplicates message even if only a sole record is imported and it is necessary to place a checkmark in the "AllowDuplicates" field.
    Regards Pavel Franc
  • Options
    noakaplannoakaplan Member Posts: 1
    Hi :D

    Any chance of a little help with how to use this tool?
    I've tried exporting a table to excel, but I keep getting stuck...

    Any help would be appreciated!
  • Options
    KrasseKrasse Member Posts: 3
    If you want to export calculated FlowFields too, you have to Add a Code in the export Codeunit 50888 in the Function AddColumnValue.

    Here is the Code from this Function.
    The Variable OptionVar i from Type Option and got these Values: Normal,FlowFilter,FlowField
    IF ColumnHeader THEN BEGIN
      XlSheet.Range(ColumnNo + FORMAT(RowNo)).Font.Bold := TRUE;
      XlSheet.Range(ColumnNo + FORMAT(RowNo)).Font.Italic := TRUE;
    END;
    XlSheet.Range(ColumnNo + FORMAT(RowNo)).NumberFormat := 0;
    
    IF NOT ColumnHeader THEN BEGIN
      // ++ START NEW CODE
      EVALUATE(OptionVar,FORMAT(FieldReference.CLASS));
      IF OptionVar = OptionVar::FlowField THEN
        FieldReference.CALCFIELD();
      // -- END NEW CODE
    
      CASE UPPERCASE(FORMAT(FieldReference.TYPE)) OF
        'CODE','TEXT':
          BEGIN
            Chr := 39;
            TextValue := FORMAT(Chr);
            XlSheet.Range(ColumnNo + FORMAT(RowNo)).Value := TextValue + ColumnValue;
          END;
        'BOOLEAN':
          BEGIN
            IF NOT ColumnHeader THEN BEGIN
              EVALUATE(BooleanConvertion,ColumnValue);
              IF BooleanConvertion THEN
                XlSheet.Range(ColumnNo + FORMAT(RowNo)).Value := '1'
              ELSE
                XlSheet.Range(ColumnNo + FORMAT(RowNo)).Value := '0'
            END;
          END;
        ELSE
          XlSheet.Range(ColumnNo + FORMAT(RowNo)).Value := ColumnValue;
      END
    END ELSE
      XlSheet.Range(ColumnNo + FORMAT(RowNo)).Value := ColumnValue;
    

    Greetings from Austria
  • Options
    eugeseuges Member Posts: 8
    Hi!. I have NAV 2009 R2.
    I have problems with all object´s number.


    "You dont have permission to read the "Export / Import Excel Header table.
    Contact your system administrator to have your permisions changed"


    Can anyone change and send me the objects with 50000-50010 numbers?.
    Thx!
Sign In or Register to comment.