This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Exporting Data from Excel to M-Files

Former Member
Former Member
I am trying to export data from an excel sheet to m-files fields. I was able to export all the data into the fields I previously set in m-files except the data in cells mapped to  multi-select fields in m-files. I used the connection to the external database tool and my excel cells mapped to the multi-select fields in m-files look something like this:

12, 15, 26

where the numbers are the ids of the names in the value list. I also tried semi-colon instead of commas with no luck.
Parents
  • This topic has turned up in a support case recently, so I'd like to be clear here: you can import data that includes multiple foreign-key relationships.

    What you cannot do is import them from columns holding delimited strings. Instead you must ensure that multiple rows are returned, one for each foreign-key relationship. This is similar to doing a SQL "outer join". Let's take the scenario of a Customer and a Project.

    Here is our customer table:

    Customer ID Name
    1 CustOne
    2 CustTwo

    Here is our project table:

    Project ID Name Customer ID
    1 ABC 1
    2 DEF 2
    3 GHI 1
    3 GHI 2

    As we can see from the data above, there is one project that is just for customer 1 (ID = 1, Name = ABC), and one project that is just for customer 2 (ID 2, Name = DEF). However, there is also one project that is for both customers 1 and 2 (ID = 3, Name = GHI).

    If the data is structured this way then you can map the project's "Object ID" property to the "Project ID" column (yes, there are two rows with the same unique ID, but M-Files will deal with it), and the project's "Customer" property to the "Customer ID" column. This will result in a single Project in the system with ID 3, but two entries in the "Customer" multi-select lookup.

    I hope that helps.

    Regards,

    Craig.
Reply
  • This topic has turned up in a support case recently, so I'd like to be clear here: you can import data that includes multiple foreign-key relationships.

    What you cannot do is import them from columns holding delimited strings. Instead you must ensure that multiple rows are returned, one for each foreign-key relationship. This is similar to doing a SQL "outer join". Let's take the scenario of a Customer and a Project.

    Here is our customer table:

    Customer ID Name
    1 CustOne
    2 CustTwo

    Here is our project table:

    Project ID Name Customer ID
    1 ABC 1
    2 DEF 2
    3 GHI 1
    3 GHI 2

    As we can see from the data above, there is one project that is just for customer 1 (ID = 1, Name = ABC), and one project that is just for customer 2 (ID 2, Name = DEF). However, there is also one project that is for both customers 1 and 2 (ID = 3, Name = GHI).

    If the data is structured this way then you can map the project's "Object ID" property to the "Project ID" column (yes, there are two rows with the same unique ID, but M-Files will deal with it), and the project's "Customer" property to the "Customer ID" column. This will result in a single Project in the system with ID 3, but two entries in the "Customer" multi-select lookup.

    I hope that helps.

    Regards,

    Craig.
Children
No Data