Want to update discovery source for SCCM integration

nikhilagr20
Giga Contributor

I am doing SCCM integration (2012R2) in ServiceNow. When I am getting data from SCCM & transform it into CMDB, Discovery Source is coming blank & Created By & Updated By fields are getting "system" value instead of User I am using for integration.   How can I change it?

5 REPLIES 5

cyked
Mega Guru

Hi Nikhil, not sure if you are still needing a specific answer.


You first need to create a user for the account you expect to show as Created By or Updated By.   Then in your SCCM 2012 v2 Computer Identity (or whatever version you are on) transform map you need to add some items to the Field Maps.  



For example, i'm mapping lasthwscan (from SCCM) to last_discovered (in CMDB).



Discovery Source will be another field map entry as a script mapping to Discovery Source (in CMDB). On the CMDB Computer table you need to edit the Discovery Source table column to include whatever account you create to be in the Choices (related list tab).   The account I created is called MS SCCM.   Then in the source script in the Field Map for the transform map, something simple like this should work:   Would be better to reference the sys_id though.


target.discovery_source = "MS SCCM";