How model is created from discovery source?

Lithesh
Kilo Sage

On which basis model record is created from discovery source. I do find some community links stating that models are created by "MakeandModelJS" but in that script there is no lines that creates model. I don't Where this is called in IRE or RTE. Any updates is appreciated.

Thanks in advance.

4 REPLIES 4

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Lithesh

Greetings!

It is from script include MakeAndModelJS.

refer below threads where this is explained.

https://www.servicenow.com/community/csm-forum/how-to-edit-related-list-records-in-agent-workspace/m...

https://www.servicenow.com/community/itom-forum/how-do-you-stop-discovery-from-automatically-creatin...

Please hit the thumb and Mark as correct based on Impact!!

 

Kind Regards,

Ravi Chandra.

Ashok Sasidhara
Tera Sage
Tera Sage

If you look at the description in the lines 14 to 17 of MakeAndModelJS script include in PDI (indicated in below screenshot), you can see that it checks for availability of matching records in Company & Model tables and then it will create new manufacturer and/or model records if they are not found. From this, it is clear that MakeAndModelJS is indeed responsible for model creation.

AshokSasidhara_0-1690379001376.png

 

Hi @Ashok Sasidhara ,
But the thing is no line in the script contains the initialization of glide record.
Regards,
Lithesh

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Lithesh 

Greetings!

Any feedback on my reply?

Please mark the answer as correct solution and helpful if it helped.

 

Kind Regards,

Ravi Chandra