Get the value from a condition type field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 12:31 AM
Hi All,
we have created a table which has below columns:
1. Table ID
2. Condition (takes values from Incident)
3. Assignment Group.
Condition can be as below:
1. Caller.location.Country is ABC
2. Caller.location.Country is XYZ
and so on.
based on above condition(s), i want to populate the Assignment Group.
How to get the value from the condition.
Thanks,
Punit
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 12:55 AM
Hi Punit,
You can directly get the query condition from the condition field using the g_form.getValue('<conditionFieldName>');
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
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
07-12-2018 02:09 AM
Hi Ankur,
thanks for your reply.
But conditions can be anything.
For ex:
1. Caller.location.Country is ABC
AND
Configuration Item is DEF.
In this case we want to check only Caller.location.Country is ABC.
if we get the value, set the Assignment Group.
Thanks,
Punit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 02:15 AM
if you dont have certain string to match the conditon then you can define it as "condition" field should not be empty and set the value in the assignment group.
can you share the screenshot?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2018 07:10 AM
Hi Punit,
Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader