- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-22-2022 06:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-22-2022 07:56 AM
Are the field names correct? can you check if the application has business owner mapped? if yes also verify if owner is active or not.
keep log and verigy the values
gs.info("business owner: "+current.variables.application.u_business_owner.toString());
answer =[];
answer.push(current.variables.application.u_business_owner.toString());
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-22-2022 06:41 AM
Then, use the below code simply.
var Req = current.variables.request_for;
var techapr = current.variables.application.u_business_owner.toString();
if (techapr[i] != Req)
{
answer.push(techapr);
}
//Answer variable can't take true false value here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-22-2022 06:48 AM
Not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-22-2022 06:55 AM
Use this. Sorry for the typo. Please user below one.
//I hope you want to skip the approval if the requestor for is the owner right?
// Please change the variable names as per your name.
Then, use the below code simply.
var Req = current.variables.request_for+"";
var techapr = current.variables.application.u_business_owner+"";
if (techapr!= Req)
{
answer.push(techapr);
}
//Answer variable can't take true false value here.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-22-2022 06:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-22-2022 06:33 AM
Hi suresh
Is business owner field type reference?
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP