Export - Import CMDB items (update instead creating new one)

Moderator: crythias

Post Reply
aveeck
Znuny newbie
Posts: 1
Joined: 01 Dec 2017, 18:29
Znuny Version: OTRS 4
Real Name: Hadrian

Export - Import CMDB items (update instead creating new one)

Post by aveeck »

Hello everyone!

So we added a new catalog class added that in an config item class.
Since we have over 4000 itmes in that config item class alone which I have to adjust I would like to export all items into a CSV-File with the new mapping elemt I created.
The problem is, even if I add the required mapping element, and import the previous exported CSV-File which I adjusted, it never updates the CMDB item itself, it creates a new one. Even when I export a single item and import it again without doing any changes, it still creates a new one.
I don't want to create new ones when I export a CSV-File, I just want to update all items through importing, so that I don't have to touch every single item, which would take a really long time itself.
I'm quite new to OTRS and I would really appreaciate some help

Thanks in advance.
nedmaj
Znuny expert
Posts: 167
Joined: 26 Nov 2014, 20:34
Znuny Version: 6.3.4
Real Name: Samuel Casimiro
Company: Câmara dos Deputados
Contact:

Re: Export - Import CMDB items (update instead creating new one)

Post by nedmaj »

Hi,

Don't worry. You should just edit your import/export template and choose a field with unique values to act as an identification. Maybe the name field.
Samuel

Znuny 6.3.4 | OTRS 5.0.17
OS: Debian 11 | CentOS 6.5
Database: Postgres | Oracle 12.1
Number of agents: 450 | Number of customers: 20000 | Number of CIs: 30000
Post Reply