Get the value from a condition type field

punitchourey
Tera Contributor

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

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

punitchourey
Tera Contributor

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

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? 

 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader