How to autopopulate the value of "Owned By" field in Network Gear {CI Class] form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 09:21 AM
I have to auto-populate the field of Owned By in the form of Network Gear {CI Class} to a particular user whenever a new network gear CI class item is created on the network gear table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 12:49 AM
Hi Aditya,
When you say you need to auto-populate the owned by, I am assuming the value with which you need to get the owned by auto-populated.
With the above assumption, here are 2 ways in which you can achieve it:
1. If your CI is coming from any discovery, you can simply add a field on the transform and put the logic there to auto-populate the owned by field
2. If there is a possibility that the CI can come from any other source, you can simply put a before insert BR and have the logic for auto-populate written there.
Please mark the solution accepted or helpful based on the resolution.
Regards,
Vismit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 07:24 AM
Hi Amit. There is a group whose manager is being autopopulated as the CI owner in the Network Gear form. I have a catalog item which has a CI owner field and i want to autopoulate it with the same group's manager via an onload script. Can you help me with it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 05:41 AM - edited 09-07-2023 05:42 AM
Hi @Aditya Sinha ,
var a= g_form.getValue("group");//group name or sysid
alert(a.manager);//check what its returning
var b=a.manager;
g_form.setValue('ci owner',b);
Please mark as helpful if this helped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 06:29 AM
Hi Divya! The group is actually not mentioned on the form. It is a custom made group whose manager needs to be populated in the ci owner field.