How to access nic and nic.cmdb_ci field values using After BR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
I want to create relationship record between ip address and network table after discovery is completed. So, I wrote an after insert BR rule on ip address table and create a relationship record. Before creating relationship record i want to verify if current.ip_address is same as ip address on its discovered CI. so, i am trying to get nic and nic.cmdb_ci field values from ip address record and i am failing capture them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Ok, when i run below log statement, why dont I get any value for current.nic? nic is a field on ip address record.
gs.info('current IP record nic: ' + current.name+ ' ' + current.nic);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Can you share the Business Rule you created to check which tables you are using and why it is not working.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Added details in the above reply, can you please review?