- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2021 02:14 PM
Hi All,
I have a small query .
I have one configuration item field for RITM and TASK both which is referencing to cmdb_ci table .For one catalog item i want to display one configuration item .
I tried run script in workflow with below
task.cmdb_ci="Automated Regulation";
Also i tried with Insert update BR with setting valuse of cmdb ci field to same value on RITM table .
But value is not being displayed .Please suggest me what am i missing here .Or suggest any other way to achieve this .
Thanks .
Solved! Go to Solution.
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2021 11:24 PM
Hi,
For SC Task you can use this
task.setDisplayValue("cmdb_ci","Automated Regulation");
For RITM Record you can use Run Script activity in your workflow
current.setDisplayValue("cmdb_ci","Automated Regulation");
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2021 06:18 AM
Hi Ankur,stark,
Thanks for your response .
I was using these methods earlier .But cmdb _ci field is not being populated with this value .When I checked the list view of sc_req_item table ,I can see cmdb_ci field is updated with this value but in form view this value is not visible .In form view cmdb_ci field is blank.
Please suggest me what could be the issue .
Thanks .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2021 06:34 AM
Hi,
it means some client script or UI policy is clearing that field on form.
please check that once.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader