- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 08:03 AM
How to set "Assigned To" field in CMDB_CI_Computer based on Username mentioned in Custom field of same Table?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 08:45 PM
Issue Resolved.
Please find below Code:-
Script Include:-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 08:25 AM
Hi @VIKAS45,
You can use a client script (runs on the form), a business rule (runs when a record is saved). Maybe other means. Depends on the desired user experience.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 02:36 AM - edited 09-21-2023 02:41 AM
please let me know the script used in Client script and script include to set "Assigned To" field in CMDB_CI_Computer based on Username mentioned in Custom field of same Table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 06:15 AM
Hi vikas45,
See examples in your instance. I may try creating both for you when I have time. However, I do not have a 'Username' custom field on that table. I do have other OOB fields defined a Reference field to sys_user table that I may provide an example using the 'owned_by' field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 08:45 PM
Issue Resolved.
Please find below Code:-
Script Include:-