[Intra-mart] How to export/import master data

# Goal
This article will tell you how to export and import the master data of Intra-mart.

# Target Reader
Administrator, Developer

# Contents

#### Prerequisites


* Intra-mart is already set up and running
* Tenant manager is ready

#### Export steps

1) Login as tenant manager(tenant admin user)

![impexp001.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/077529da-3312-4140-17c8-5251de51f425.png)

2) Find "Jobnet setting" menu from sitemap

![impexp002.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/1bb43e28-7708-e47a-30a8-f908781893b6.png)

3) Find "Export" category under "IM common master"
![impexp003.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/8f012965-d819-cea0-a420-498670f01e09.png)

4) Find jobnet "company / department" and "Execute immediately"
![impexp004.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/ccf10c6c-97fa-8f1a-4e50-9cd8a1116bab.png)

5) A dispatch message is shown
![impexp005.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/8de64261-be0e-8b44-5861-dba1f5d2e947.png)

6) Move to "Jobnet Monitor list" screen
![impexp006.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/503e2575-fdd0-69e5-3f93-6e5d0685518e.png)

7) Find "Success" status
![impexp007.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/1ace8d7d-5a1d-d3f5-9288-28173c015b2c.png)

8) To check exported files, go to "File operation" screen
![impexp008.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/c2c8871c-cf36-367d-b8bd-7a676948afa1.png)

9) Find company.xml in the storage(e.g. default/im_master/data/default/company.xml)
![impexp009.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/55644fe0-c15a-4871-c822-f4a9846bc52d.png)

10) Execute user exports in the same way
![impexp010.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/af46f5d6-7b7e-d764-bfe3-166a0ba80d4e.png)

11) Execute account exports and role exports as well
![impexp011.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/7de0ae9d-d606-7c51-4dc4-1d1c978e2142.png)

12) Find account export files and role export files under the storage(e.g. default/account.xml, default/role.xml)
![impexp012.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/e63206f1-f575-fc20-9c90-69832f72655e.png)

#### Import steps

1) Prepare exported files; upload files to the storage in the same path as those exported
![impexp013.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/d9b8514b-2728-23bc-59de-a5500a8566d2.png)

2) Find import jobnet category from the jobnet list
![impexp014.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/0a2ee906-0c85-ddad-4b1c-cfa116e1141f.png)

3) Find company import jobnet when you want to import company and department data
![impexp015.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/fa0a8fb9-653a-c8c4-61be-90f66424c7eb.png)

4) A dispatch message is shown
![impexp016.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/7494ccec-c181-78ab-dd6a-d213e4516442.png)

5) Find import jobnet status "Success"
![impexp017.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/bf410c3d-059f-0403-7e36-28dbf01e3856.png)

#### You should know also...

Please be aware the entity scope of export jobs and dependency.
The following diagrams show the structures.
![impexp018.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/6f2011f2-bbf0-a7be-65e7-8d583c101c9f.png)


![impexp019.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/521537/86c26df0-a1d8-93b8-db54-62e56d3dce04.png)