Populate RITMs with Configuration Item

michaellshively
Mega Expert

I've been running live in ServiceNow (Geneva) for a few months now. One major mistake I made in the very beginning was that my Catalog Items are not recording a Configuration Item on the RITMs. Obviously this is a major problem when it comes to reporting on the type of work being submitted for each configuration item.

Now my task is to figure out a way to populate each of these RITMs (going forward, not the ones already submitted) with a configuration item.

I'm looking for some guidance on the best way to do this but I think I have an idea.

Would it be acceptable to add a new variable (variable set? so it's reusable?) to each of the Catalog Items and call it "var_My_ConfigItem".

Then I think I need to update the workflows used by these configuration items to record this information on the RITM.

Unfortunately, this is still a bit out of reach for me with my limited experience on the platform.

Any guidance is greatly appreciated!

Thanks all!

M

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

Hi Michael,



      You can create a variable which references cmdb_ci table and in the workflow add Run script activity and use this line in the script section to set the configuration item on request item


current.configuration_item=current.variables.<variable name>;


View solution in original post

5 REPLIES 5

This is how your script will look like.


function onLoad() {


    g_form.setValue("your variable name","sys_id of the configuration item");


   


}