how to get the value from sysid in business rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 11:55 PM
Hi Team,
how to get the value from sysid in business rules.
Thanks,
Chandra
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2016 01:16 AM
Are you trying to get sys_id of current record? or sys_id of "metric_instance"?
if sys_id of current record - then use current.sys_id
if sys_id of "metric_instance" - you may try gr.sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2016 03:43 AM
I usally use the getUniqueValue() to fetch the sys_id.
for example gr.getUniqueValue()
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2016 04:05 AM
Hi
how to get the assignment group name in business rule.
Thanks,
Chandra
On Nov 12, 2016 5:14 PM, "goranlundqvist" <community-no-reply@servicenow.com>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2016 05:04 AM
Like Andrii wrote:
if name of current record - then use current.assignment_group.getDisplayValue();
if name of "metric_instance" - try gr.assignment_group.getDisplayValue();
Note that these will retrieve the name of the assignment group, not its sys_id
harel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2016 12:10 AM
Hi Team,
I have two fields(field1 and value1) in metric instance form and I need to
get the assignment group name and set it to those values in metric
instance fields in the business rules.
Thanks,
Chandra