two fields are made coalesce, if both match, record is updated. if any one is not matched then record should not insert/created

nitin51
Tera Contributor

two fields are made coalesce, if both match, record is updated. if any one is not matched then record should not insert/created

EX:

in CMDB_CI table, name field and class are made coalesce, 

if any one field is not matched/same, new record will be inserted(normal function), but i dont want that record to be inserted/ created.

only if both fields matched, then record should be updated.

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

If yes, use this in transform map script:

 

if (action == 'insert' ){
 ignore = true;
 }

Best Regards
Aman Kumar

View solution in original post

4 REPLIES 4

Aman Kumar S
Kilo Patron

What are using to import the records, import sets?

Best Regards
Aman Kumar

Aman Kumar S
Kilo Patron

If yes, use this in transform map script:

 

if (action == 'insert' ){
 ignore = true;
 }

Best Regards
Aman Kumar

dmathur09
Kilo Sage
Kilo Sage

Hi Nitin,

This is an OOB behavior, what issue are you facing with?

Regards,

Deepankar Mathur 

Hi Deepankar,

Thanks for your reply,

OOT behavior is "two fields are made coalesce, if both match, record is updated. if any one is not matched then record will be created".

What I want is "if any one field is not matched then record should not insert/created"