Best practice for updating Asset fields during CI Transform Map import?

4886talga
Tera Contributor

Hi everyone,

I am importing server data into the cmdb_ci_server table using a Transform Map. The CIs are creating correctly, and the corresponding Assets are being generated automatically in alm_hardware.

I need to map 4 specific fields from my import set (u_account, u_account_address, u_stockroom, u_service_organization) directly to the Asset record, not the CI.

I tried using an onComplete script, but it seems the Asset records aren't fully created/linked by the time the script runs, so the updates aren't sticking.

Does anyone have a recommended approach for this? Should I be using an onAfter script with a GlideRecord to the alm_hardware table, or is there a way to ensure the Asset is created synchronously so I can dot-walk to it?

Thanks in advance!

0 REPLIES 0